diff --git a/src/manifest.c b/src/manifest.c index d3d7f26..c2bc33e 100644 --- a/src/manifest.c +++ b/src/manifest.c @@ -1440,7 +1440,8 @@ int resign_image(struct image *image) { int key_size, key_file_size; void *buffer = NULL; - size_t size, read; + size_t read; + int32_t size; FILE *in_file; int ret, i; @@ -1487,7 +1488,7 @@ int resign_image(struct image *image) /* read file into buffer */ read = fread(buffer, 1, size, in_file); if (read != size) { - fprintf(stderr, "error: unable to read %zu bytes from %s err %d\n", + fprintf(stderr, "error: unable to read %d bytes from %s err %d\n", size, image->in_file, errno); ret = errno; goto out;