1
0
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:
gitlost
2025-02-23 19:48:55 +00:00
parent 174bbf06a8
commit c11ab5528d
6 changed files with 16 additions and 17 deletions

View File

@@ -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);