mirror of
https://git.code.sf.net/p/zint/code
synced 2025-12-17 18:07:02 +00:00
general: suppress some CodeQL warnings
CODABLOCKF: tidy some comments
This commit is contained in:
@@ -1531,7 +1531,7 @@ int ZBarcode_Encode_File(struct zint_symbol *symbol, const char *filename) {
|
||||
}
|
||||
|
||||
/* Allocate memory */
|
||||
buffer = (unsigned char *) malloc(fileLen);
|
||||
buffer = (unsigned char *) malloc((size_t) fileLen);
|
||||
if (!buffer) {
|
||||
if (file_opened) {
|
||||
(void) fclose(file);
|
||||
|
||||
Reference in New Issue
Block a user