mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
Make compile with MS-VC6
This commit is contained in:
@ -145,7 +145,8 @@ int australia_post(struct zint_symbol *symbol, unsigned char source[], int lengt
|
||||
strcpy(symbol->errtxt, "402: Invalid characters in data");
|
||||
return error_number;
|
||||
}
|
||||
} else {
|
||||
} else {
|
||||
int zeroes;
|
||||
if (length > 8) {
|
||||
strcpy(symbol->errtxt, "403: Auspost input is too long");
|
||||
return ZINT_ERROR_TOO_LONG;
|
||||
@ -160,7 +161,7 @@ int australia_post(struct zint_symbol *symbol, unsigned char source[], int lengt
|
||||
}
|
||||
|
||||
/* Add leading zeros as required */
|
||||
int zeroes = 8 - length;
|
||||
zeroes = 8 - length;
|
||||
memset(localstr, '0', zeroes);
|
||||
localstr[8] = '\0';
|
||||
}
|
||||
|
Reference in New Issue
Block a user