From 4b8b6cce11623d208c03595a241d9af21fba04ba Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 28 Jul 2020 15:57:48 +0200 Subject: Fix issues reported by cppcheck --- src/fileutils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/fileutils.c') 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; } -- cgit v1.2.3