mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
- BMP/EMF/EPS/GIF/PCX/PNG/SVG/TIF/TXT: check for errors on writing
to output file; ZBarcode_Encode_File: check `fseek()` for errors (ticket #275) - man page: fix Code 11 check digit info - manual/man page: document octal escape; Code 128 subset/mode -> Code Set
This commit is contained in:
@ -1013,7 +1013,7 @@ static int append_log(char log) {
|
||||
|
||||
file = fopen("zintlog.txt", "a+");
|
||||
fprintf(file, "%c", log);
|
||||
fclose(file);
|
||||
(void) fclose(file);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -1023,7 +1023,7 @@ static int write_log(char log[]) {
|
||||
file = fopen("zintlog.txt", "a+");
|
||||
fprintf(file, log); /*writes*/
|
||||
fprintf(file, "\r\n"); /*writes*/
|
||||
fclose(file);
|
||||
(void) fclose(file);
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user