mirror of
https://git.code.sf.net/p/zint/code
synced 2025-12-18 02:17:06 +00:00
Fix typo in estimating lenth of binary data in QR Code
Fixes #106 reported by Daniel Gredler
This commit is contained in:
@@ -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')) {
|
||||
mlen++;
|
||||
};
|
||||
if (mlen < 6) {
|
||||
if (mlen < 4) {
|
||||
for (j = 0; j < mlen; j++) {
|
||||
mode[i + j] = 'B';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user