commit | b4e923a8056c29ae978c2086b65be0cbc84cef4e | [log] [tgz] |
---|---|---|
author | Sven Ebenfeld <sven.ebenfeld@gmail.com> | Tue Jan 17 19:36:51 2017 +0100 |
committer | Tom Rini <trini@konsulko.com> | Fri Jan 20 15:38:04 2017 -0500 |
tree | 4297358ad3f2632d1cfd19f266758f2048f9fc6d | |
parent | fc4dd72eb6b8537b65e67622833e69d7a3dda4e1 [diff] [blame] |
tools: mkimage: fix sizeof_mismatch found by coverity Reported-by: Coverity (CID: 155214) Signed-off-by: Sven Ebenfeld <sven.ebenfeld@gmail.com>
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 @@ + 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,