From a57ef2adc86596128b7c304374029f91ec15d004 Mon Sep 17 00:00:00 2001 From: Harald Oehlmann Date: Wed, 26 Oct 2016 19:34:21 +0200 Subject: [PATCH] 2016-10-26 HaO Extended HIBC string length to 112 (HIBC 2.6) --- backend/library.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/backend/library.c b/backend/library.c index cff6acdd..420f0b4e 100644 --- a/backend/library.c +++ b/backend/library.c @@ -286,9 +286,10 @@ int dump_plot(struct zint_symbol *symbol) { /* Process health industry bar code data */ static int hibc(struct zint_symbol *symbol, unsigned char source[], size_t length) { int counter, error_number, i; - char to_process[40], temp[2], check_digit; + char to_process[113], temp[2], check_digit; - if (length > 36) { + /* without "+" and check: max 110 characters in HIBC 2.6 */ + if (length > 110) { strcpy(symbol->errtxt, "Data too long for HIBC LIC"); return ZINT_ERROR_TOO_LONG; }