mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
ZBarcode_Encode_File: suppress gcc -fanalyzer warning, props Andre Maute; ZINT_MAX_FILE_LEN
This commit is contained in:
@ -296,7 +296,7 @@ static int is_raster(char *filetype) {
|
||||
|
||||
static int batch_process(struct zint_symbol *symbol, char *filename, int mirror_mode, char *filetype, int rotate_angle) {
|
||||
FILE *file;
|
||||
unsigned char buffer[7828] = {0}; // 7828 maximum HanXin input
|
||||
unsigned char buffer[ZINT_MAX_FILE_LEN] = {0}; // Maximum HanXin input
|
||||
unsigned char character = 0;
|
||||
int posn = 0, error_number = 0, line_count = 1;
|
||||
char output_file[256];
|
||||
|
Reference in New Issue
Block a user