Set max coupon code length to 70

Fixes #112 reported by Daniel Gredler
This commit is contained in:
Robin Stuart 2018-07-05 21:22:27 +01:00
parent 2642a418b9
commit 951209331a

View File

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