From 5fcb61fcd8f0f152c6e06a8cdfabed4110633a2a Mon Sep 17 00:00:00 2001 From: hooper114 Date: Thu, 15 Jan 2009 18:42:15 +0000 Subject: [PATCH] detect control char and non numbers in AI --- backend/code16k.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/code16k.c b/backend/code16k.c index 551da627..491806df 100644 --- a/backend/code16k.c +++ b/backend/code16k.c @@ -312,7 +312,6 @@ int code16k(struct zint_symbol *symbol, unsigned char source[]) } /* start with the mode character - Table 2 */ - read = 0; m = 0; switch(set[0]) { case 'A': m = 0; break; @@ -323,8 +322,8 @@ int code16k(struct zint_symbol *symbol, unsigned char source[]) if(gs1) { /* Integrate FNC1 */ switch(set[0]) { - case 'B': m = 3; read = 1; break; - case 'C': m = 4; read = 1; break; + case 'B': m = 3; break; + case 'C': m = 4; break; } } else { if((set[0] == 'B') && (set[1] == 'C')) { m = 5; } @@ -347,6 +346,7 @@ int code16k(struct zint_symbol *symbol, unsigned char source[]) bar_characters += 2; } + read = 0; /* Encode the data */ do {