From 93fa54a784ef571c25c656f14460c7a6912651fb Mon Sep 17 00:00:00 2001 From: Harald Oehlmann Date: Tue, 18 Aug 2015 14:26:24 +0200 Subject: [PATCH] Wrong length variable used for x12: Data "P4022.631.50231>SN2743>4LCA>VOPTIM01US>10D2014/7/28" was a spurious "8" appended. Fix by Milton Neal and Robin Stuart. --- backend/dmatrix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/dmatrix.c b/backend/dmatrix.c index c62faefe..2761ba9b 100755 --- a/backend/dmatrix.c +++ b/backend/dmatrix.c @@ -610,7 +610,7 @@ int dm200encode(struct zint_symbol *symbol, unsigned char source[], unsigned cha int value = 0; next_mode = DM_X12; - if(text_p == 0) { + if(x12_p == 0) { next_mode = look_ahead_test(source, inputlen, sp, current_mode, gs1); }