mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-09 13:41:59 -04:00
Fixes for eci, binary div, upce, other
This commit is contained in:
parent
89c2ee6f1d
commit
d76cdd615b
11 changed files with 80 additions and 100 deletions
|
@ -582,6 +582,9 @@ int channel_code(struct zint_symbol *symbol, unsigned char source[], int length)
|
|||
NextS(channels, 3, channels, channels);
|
||||
|
||||
zeroes = channels - 1 - length;
|
||||
if (zeroes < 0) {
|
||||
zeroes = 0;
|
||||
}
|
||||
memset(hrt, '0', zeroes);
|
||||
strcpy(hrt + zeroes, (char *) source);
|
||||
ustrcpy(symbol->text, (unsigned char *) hrt);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue