From cbe5b3278518eccc25d916a9f4af4b75c279b5af Mon Sep 17 00:00:00 2001 From: Robin Stuart Date: Sun, 7 Feb 2016 14:31:58 +0000 Subject: [PATCH] Prevent binary data corruption Bugfix by Karl Semich Ref: http://sourceforge.net/p/zint/mailman/message/34330108/ --- backend/aztec.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/aztec.c b/backend/aztec.c index b74a42fe..883a40e5 100644 --- a/backend/aztec.c +++ b/backend/aztec.c @@ -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; }