mirror of
https://git.code.sf.net/p/zint/code
synced 2025-12-22 12:27:03 +00:00
Fix (simple) QR Code bug
This commit is contained in:
@@ -71,11 +71,6 @@ int qr_code(struct zint_symbol *symbol, unsigned char source[])
|
|||||||
int errno = 0;
|
int errno = 0;
|
||||||
int i, j;
|
int i, j;
|
||||||
|
|
||||||
if(ustrlen(source) > 5254) {
|
|
||||||
strcpy(symbol->errtxt, "input data too long [580]");
|
|
||||||
return ERROR_TOO_LONG;
|
|
||||||
}
|
|
||||||
|
|
||||||
code = encode(symbol->option_1, symbol->option_2, source);
|
code = encode(symbol->option_1, symbol->option_2, source);
|
||||||
if(code == NULL) {
|
if(code == NULL) {
|
||||||
strcpy(symbol->errtxt, "libqrencode failed to encode the input data [581]");
|
strcpy(symbol->errtxt, "libqrencode failed to encode the input data [581]");
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ struct zint_symbol {
|
|||||||
int rows;
|
int rows;
|
||||||
int width;
|
int width;
|
||||||
char primary[100];
|
char primary[100];
|
||||||
char encoded_data[155][1000];
|
char encoded_data[178][1000];
|
||||||
int row_height[155];
|
int row_height[155];
|
||||||
char errtxt[100];
|
char errtxt[100];
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user