mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-27 16:01:27 +00:00
tools: mkimage: fix sizeof_mismatch found by coverity
Reported-by: Coverity (CID: 155214) Signed-off-by: Sven Ebenfeld <sven.ebenfeld@gmail.com>
This commit is contained in:
parent
fc4dd72eb6
commit
b4e923a805
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue