mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
Correctly add leading zeroes to Australia Post symbols
Bug fix by Erik Salaj <eriksalaj@gmail.com>
This commit is contained in:
parent
3aeb1ea70a
commit
38150ce931
@ -163,7 +163,7 @@ int australia_post(struct zint_symbol *symbol, unsigned char source[], int lengt
|
||||
/* Add leading zeros as required */
|
||||
zeroes = 8 - length;
|
||||
memset(localstr, '0', zeroes);
|
||||
localstr[8] = '\0';
|
||||
localstr[zeroes] = '\0';
|
||||
}
|
||||
|
||||
strcat(localstr, (char*) source);
|
||||
|
Loading…
x
Reference in New Issue
Block a user