From b005aea25a08e74ca21c697c832f96ad324256c2 Mon Sep 17 00:00:00 2001 From: hooper114 Date: Wed, 15 Oct 2008 18:22:29 +0000 Subject: [PATCH] Fix (simple) QR Code bug --- backend/qr.c | 5 ----- backend/zint.h | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/backend/qr.c b/backend/qr.c index 87167e97..1193b6a1 100644 --- a/backend/qr.c +++ b/backend/qr.c @@ -71,11 +71,6 @@ int qr_code(struct zint_symbol *symbol, unsigned char source[]) int errno = 0; 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); if(code == NULL) { strcpy(symbol->errtxt, "libqrencode failed to encode the input data [581]"); diff --git a/backend/zint.h b/backend/zint.h index 2244d584..993c06d9 100644 --- a/backend/zint.h +++ b/backend/zint.h @@ -42,7 +42,7 @@ struct zint_symbol { int rows; int width; char primary[100]; - char encoded_data[155][1000]; + char encoded_data[178][1000]; int row_height[155]; char errtxt[100]; };