Bugfix in Telepen

Telepen does not support 0x7f - thanks to Monica Swanson
This commit is contained in:
Robin Stuart 2010-12-13 20:45:18 +00:00
parent 0be72e8ed6
commit d0f15ef423

View File

@ -63,7 +63,7 @@ int telepen(struct zint_symbol *symbol, unsigned char source[], int src_len)
strcpy(dest, TeleTable['_']);
for(i = 0; i < src_len; i++) {
if(source[i] > 127) {
if(source[i] > 126) {
/* Cannot encode extended ASCII */
strcpy(symbol->errtxt, "Invalid characters in input data");
return ERROR_INVALID_DATA;