1
0
mirror of https://git.code.sf.net/p/zint/code synced 2026-01-21 19:06:05 +00:00

latin1_process function changed

This commit is contained in:
tgotic
2011-05-16 20:03:21 +02:00
parent 3407239b80
commit d550f18d90
7 changed files with 68 additions and 80 deletions

View File

@@ -575,8 +575,11 @@ int maxicode(struct zint_symbol *symbol, unsigned char source[], int length)
local_source[length] = '\0';
break;
case UNICODE_MODE:
error_number = latin1_process(symbol, source, local_source, &length);
if(error_number != 0) { return error_number; }
error_number = latin1_process(source, local_source, &length);
if(error_number != 0) {
strcpy(symbol->errtxt, "error: Invalid character in input string (only Latin-1 characters supported)");
return error_number;
}
break;
}
memset(maxi_codeword, 0, sizeof(maxi_codeword));