mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
parent
52214c5a1c
commit
0244904c1f
@ -441,9 +441,11 @@ static int c1_encode(struct zint_symbol *symbol, unsigned char source[], unsigne
|
|||||||
|
|
||||||
if (j == 13) {
|
if (j == 13) {
|
||||||
latch = 0;
|
latch = 0;
|
||||||
for (i = sp + 13; i < length; i++) {
|
if ((length - sp) >= 14) {
|
||||||
if (!((source[i] >= '0') && (source[i] <= '9'))) {
|
for (i = sp + 13; i < length; i++) {
|
||||||
latch = 1;
|
if (!((source[i] >= '0') && (source[i] <= '9'))) {
|
||||||
|
latch = 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -490,9 +492,11 @@ static int c1_encode(struct zint_symbol *symbol, unsigned char source[], unsigne
|
|||||||
|
|
||||||
if (j == 7) {
|
if (j == 7) {
|
||||||
latch = 0;
|
latch = 0;
|
||||||
for (i = sp + 7; i < length; i++) {
|
if ((length - sp) >= 8) {
|
||||||
if (!((source[sp + i] >= '0') && (source[sp + i] <= '9'))) {
|
for (i = sp + 7; i < length; i++) {
|
||||||
latch = 1;
|
if (!((source[sp + i] >= '0') && (source[sp + i] <= '9'))) {
|
||||||
|
latch = 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user