mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
Adjusted max length Postnet and PLANET
This commit is contained in:
parent
8438d1298d
commit
8d1b63f180
@ -56,7 +56,7 @@ int postnet(struct zint_symbol *symbol, unsigned char source[], char dest[])
|
||||
|
||||
error_number = 0;
|
||||
|
||||
if(ustrlen(source) > 90) {
|
||||
if(ustrlen(source) > 38) {
|
||||
strcpy(symbol->errtxt, "Input too long [401]");
|
||||
return ERROR_TOO_LONG;
|
||||
}
|
||||
@ -132,7 +132,7 @@ int planet(struct zint_symbol *symbol, unsigned char source[], char dest[])
|
||||
|
||||
error_number = 0;
|
||||
|
||||
if(ustrlen(source) > 90) {
|
||||
if(ustrlen(source) > 38) {
|
||||
strcpy(symbol->errtxt, "Input too long [821]");
|
||||
return ERROR_TOO_LONG;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user