diff options
Diffstat (limited to 'ubi-utils/src/bin2nand.c')
-rw-r--r-- | ubi-utils/src/bin2nand.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ubi-utils/src/bin2nand.c b/ubi-utils/src/bin2nand.c index 7c4c816..cf69191 100644 --- a/ubi-utils/src/bin2nand.c +++ b/ubi-utils/src/bin2nand.c @@ -228,14 +228,14 @@ process_page(uint8_t* buf, size_t pagesize, /* either separate oob or interleave with data */ if (fp_oob) { - fwrite(oobbuf, 1, oobsize, fp_oob); + i = fwrite(oobbuf, 1, oobsize, fp_oob); if (ferror(fp_oob)) { err_msg("IO error\n"); return -EIO; } } else { - fwrite(oobbuf, 1, oobsize, fp_data); + i = fwrite(oobbuf, 1, oobsize, fp_data); if (ferror(fp_data)) { err_msg("IO error\n"); return -EIO; |