mirror of
https://git.code.sf.net/p/zint/code
synced 2026-01-11 05:55:58 +00: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