Skip to content
Snippets Groups Projects
Commit b4e923a8 authored by Sven Ebenfeld's avatar Sven Ebenfeld Committed by Tom Rini
Browse files

tools: mkimage: fix sizeof_mismatch found by coverity


Reported-by: Coverity (CID: 155214)
Signed-off-by: default avatarSven Ebenfeld <sven.ebenfeld@gmail.com>
parent fc4dd72e
No related branches found
No related tags found
No related merge requests found
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment