1
0
mirror of https://github.com/woo-j/zint.git synced 2025-01-27 10:03:45 +03:00

Prevent binary data corruption

Bugfix by Karl Semich
Ref: http://sourceforge.net/p/zint/mailman/message/34330108/
This commit is contained in:
Robin Stuart 2016-02-07 14:31:58 +00:00
parent 21a8a0f0b7
commit cbe5b32785

View File

@ -568,6 +568,7 @@ int aztec_text_process(unsigned char source[], const unsigned int src_len, char
if(debug) printf("UL ");
concat(binary_string, hexbit[31]);
if(debug) printf("BS ");
lasttable = UPPER;
newtable = BINARY;
break;
case DIGIT: /* UL BS */
@ -575,6 +576,7 @@ int aztec_text_process(unsigned char source[], const unsigned int src_len, char
if(debug) printf("UL ");
concat(binary_string, hexbit[31]);
if(debug) printf("BS ");
lasttable = UPPER;
newtable = BINARY;
break;
}