mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
2016-10-26 HaO Extended HIBC string length to 112 (HIBC 2.6)
This commit is contained in:
parent
673803d888
commit
a57ef2adc8
@ -286,9 +286,10 @@ int dump_plot(struct zint_symbol *symbol) {
|
|||||||
/* Process health industry bar code data */
|
/* Process health industry bar code data */
|
||||||
static int hibc(struct zint_symbol *symbol, unsigned char source[], size_t length) {
|
static int hibc(struct zint_symbol *symbol, unsigned char source[], size_t length) {
|
||||||
int counter, error_number, i;
|
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");
|
strcpy(symbol->errtxt, "Data too long for HIBC LIC");
|
||||||
return ZINT_ERROR_TOO_LONG;
|
return ZINT_ERROR_TOO_LONG;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user