From 7494a241ca1e718bd0b7bf491460abd418baa59d Mon Sep 17 00:00:00 2001 From: Harald Oehlmann Date: Thu, 30 Mar 2017 15:23:14 +0200 Subject: [PATCH] Bug fix for Ticket 56: Codablock F: [StartA] was coded as [StartA][SHIFT] resulting in wrong Code and illegal memory access to wrong Code128 pattern --- backend/codablock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/codablock.c b/backend/codablock.c index 8c47c1ea..ab926434 100644 --- a/backend/codablock.c +++ b/backend/codablock.c @@ -878,7 +878,7 @@ int codablock(struct zint_symbol *symbol, unsigned char source[], int length) { characterSetCur=CodeC; } } - if ((pSet[charCur]&CodeA)!=0) + if ((pSet[charCur]&CShift)!=0) { /* >> Shift it and put out the shifted character */ ASCIIZ128(&pOutPos,characterSetCur,aShift,'\0');