mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-24 03:56:56 -04:00
2016-10-26 HaO Extended HIBC string length to 112 (HIBC 2.6)
This commit is contained in:
parent
673803d888
commit
a57ef2adc8
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue