mirror of
https://git.code.sf.net/p/zint/code
synced 2025-12-27 06:47:12 +00:00
Correctly add leading zeroes to Australia Post symbols
Bug fix by Erik Salaj <eriksalaj@gmail.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user