summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/mkimage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/mkimage.c b/tools/mkimage.c
index b0c98f6..d982bc5 100644
--- a/tools/mkimage.c
+++ b/tools/mkimage.c
@@ -526,7 +526,7 @@ int main(int argc, char **argv)
+ 0x20, 0 };
int i = params.file_size;
for (; i < aligned_filesize; i++) {
- if (write(ifd, &i, 1) != 1) {
+ if (write(ifd, (char *) &i, 1) != 1) {
fprintf(stderr,
"%s: Write error on %s: %s\n",
params.cmdname,