diff options
author | Sven Ebenfeld <sven.ebenfeld@gmail.com> | 2017-01-17 19:36:51 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-01-20 15:38:04 -0500 |
commit | b4e923a8056c29ae978c2086b65be0cbc84cef4e (patch) | |
tree | 4297358ad3f2632d1cfd19f266758f2048f9fc6d /tools/mkimage.c | |
parent | fc4dd72eb6b8537b65e67622833e69d7a3dda4e1 (diff) |
tools: mkimage: fix sizeof_mismatch found by coverity
Reported-by: Coverity (CID: 155214)
Signed-off-by: Sven Ebenfeld <sven.ebenfeld@gmail.com>
Diffstat (limited to 'tools/mkimage.c')
-rw-r--r-- | tools/mkimage.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/mkimage.c b/tools/mkimage.c index b0c98f6f551..d982bc5665f 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, |