1
0
mirror of https://github.com/woo-j/zint.git synced 2024-12-25 09:33:56 +03:00

Correct bizarre use of isX12()

Bug spotted by Milton Neal
This commit is contained in:
Robin Stuart 2016-07-25 22:46:26 +01:00
parent 118caf10ea
commit 804ca24aca

View File

@ -274,7 +274,7 @@ static int p_r_6_2_1(const unsigned char inputData[], const int position, const
for (i = position; i < sourcelen; i++) {
if (nonX12Position == 0) {
if (isX12(i) == 1) {
if (isX12(inputData[i]) != 1) {
nonX12Position = i;
}
}