From 951209331aba72fcb467d4dea04e1a542635a1c3 Mon Sep 17 00:00:00 2001 From: Robin Stuart Date: Thu, 5 Jul 2018 21:22:27 +0100 Subject: [PATCH] Set max coupon code length to 70 Fixes #112 reported by Daniel Gredler --- backend/gs1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/gs1.c b/backend/gs1.c index 9d196342..d1de74bf 100644 --- a/backend/gs1.c +++ b/backend/gs1.c @@ -439,7 +439,7 @@ int gs1_verify(struct zint_symbol *symbol, const unsigned char source[], const s case 8110: // Coupon code case 8112: // Paperless coupon code case 8200: // PRODUCT URL - if (data_length[i] > 34) { + if (data_length[i] > 70) { error_latch = 1; } else { error_latch = 0;