mirror of
https://git.code.sf.net/p/zint/code
synced 2025-12-23 04:47:03 +00:00
Adjusted max length Postnet and PLANET
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user