mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
bug fix from Yannick Morin-Rivest
This commit is contained in:
parent
d38e41fa74
commit
bc9a51372e
@ -318,7 +318,7 @@ char ecc200encode(unsigned char *t, int tl, unsigned char *s, int sl,
|
||||
}
|
||||
}
|
||||
}
|
||||
if (p == 2 && tp + 2 == tl && sp == sl)
|
||||
if (p == 2 && tp + 2 <= tl && sp == sl)
|
||||
out[p++] = 0; // shift 1 pad at end
|
||||
while (p >= 3) {
|
||||
int v =
|
||||
|
Loading…
Reference in New Issue
Block a user