mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
Fix typo in estimating lenth of binary data in QR Code
Fixes #106 reported by Daniel Gredler
This commit is contained in:
parent
23a990c37c
commit
628078021b
@ -119,7 +119,7 @@ static void define_mode(char mode[],const int jisdata[], const size_t length,con
|
|||||||
while (((mlen + i) < length) && (mode[mlen + i] == 'A')) {
|
while (((mlen + i) < length) && (mode[mlen + i] == 'A')) {
|
||||||
mlen++;
|
mlen++;
|
||||||
};
|
};
|
||||||
if (mlen < 6) {
|
if (mlen < 4) {
|
||||||
for (j = 0; j < mlen; j++) {
|
for (j = 0; j < mlen; j++) {
|
||||||
mode[i + j] = 'B';
|
mode[i + j] = 'B';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user