Allow FNC1 to be implied by mode character in Code 16k and pass reduced string of correct signedness

This commit is contained in:
hooper114 2009-01-13 20:42:45 +00:00
parent 9b569c8717
commit c6728f4c17
4 changed files with 41 additions and 6 deletions

View file

@ -283,7 +283,8 @@ int ZBarcode_Encode(struct zint_symbol *symbol, unsigned char *source)
break;
case GS1_MODE:
if(gs1_compliant(symbol->symbology) == 1) {
ustrcpy(preprocessed, source);
error_number = ugs1_verify(symbol, source, preprocessed);
if(error_number != 0) { return error_number; }
} else {
strcpy(symbol->errtxt, "Selected symbology does not support GS1 mode");
return ERROR_INVALID_OPTION;