1
0
Fork 0
mirror of https://git.code.sf.net/p/zint/code synced 2025-05-28 14:04:19 -04:00

gs1_verify: validate AIs from BWIPP gs1-format-spec.txt

This commit is contained in:
gitlost 2021-01-18 20:10:52 +00:00
parent 0b80592f87
commit f9300cb37e
28 changed files with 5887 additions and 1275 deletions
backend

View file

@ -2,7 +2,7 @@
/*
libzint - the open source barcode library
Copyright (C) 2008-2020 Robin Stuart <rstuart114@gmail.com>
Copyright (C) 2008-2021 Robin Stuart <rstuart114@gmail.com>
Bugfixes thanks to Christian Sakowski and BogDan Vatra
Redistribution and use in source and binary forms, with or without
@ -734,7 +734,7 @@ INTERNAL int ean_128(struct zint_symbol *symbol, unsigned char source[], int len
}
error_number = gs1_verify(symbol, source, length, reduced);
if (error_number != 0) {
if (error_number >= ZINT_ERROR) {
return error_number;
}
reduced_length = (int) ustrlen(reduced);