Fix typo in estimating lenth of binary data in QR Code

Fixes #106 reported by Daniel Gredler
This commit is contained in:
Robin Stuart 2018-06-20 23:48:32 +01:00
parent 23a990c37c
commit 628078021b

View File

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