1
0
mirror of https://git.code.sf.net/p/zint/code synced 2025-12-17 18:07:02 +00:00

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

This commit is contained in:
Harald Oehlmann
2017-03-30 15:23:14 +02:00
parent e921172f7a
commit 7494a241ca

View File

@@ -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');