Expand symbol memory to allow biggest Han Xin without crashing

This commit is contained in:
Robin Stuart 2016-08-21 21:58:38 +01:00
parent fd368ba8bf
commit eedb4c638a
2 changed files with 3 additions and 3 deletions

View file

@ -1083,7 +1083,7 @@ int dotcode(struct zint_symbol *symbol, unsigned char source[], int length) {
}
}
if ((height > 177) || (width > 177)) {
if ((height > 200) || (width > 200)) {
strcpy(symbol->errtxt, "Specified symbol size is too large");
return ZINT_ERROR_INVALID_OPTION;
}