diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-07-28 15:57:48 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-07-28 15:57:48 +0200 |
commit | 4b8b6cce11623d208c03595a241d9af21fba04ba (patch) | |
tree | 4eeade587da0c33911d7792912bcc40c0c1240ca /src/fileutils.c | |
parent | ec5e3c06084ef9c4b7fd71e4bb04af3fbe77bed9 (diff) |
Fix issues reported by cppcheck
Diffstat (limited to 'src/fileutils.c')
-rw-r--r-- | src/fileutils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fileutils.c b/src/fileutils.c index 524a603..a66bba6 100644 --- a/src/fileutils.c +++ b/src/fileutils.c @@ -104,7 +104,7 @@ int file_overwrite(const char *filepath, const char *data, size_t size) { unsigned long bytes_written = fwrite(data, 1, size, file); if(bytes_written != size) { - fprintf(stderr, "Failed to write all bytes to file %s. Expected to write %zu bytes, only wrote %zu bytes\n", filepath, size, bytes_written); + fprintf(stderr, "Failed to write all bytes to file %s. Expected to write %zu bytes, only wrote %zu bytes\n", filepath, size, (size_t)bytes_written); fclose(file); return -1; } |