summaryrefslogtreecommitdiff
path: root/ubi-utils/src/pfi2bin.c
diff options
context:
space:
mode:
Diffstat (limited to 'ubi-utils/src/pfi2bin.c')
-rw-r--r--ubi-utils/src/pfi2bin.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ubi-utils/src/pfi2bin.c b/ubi-utils/src/pfi2bin.c
index 57c4ea5..6d5b210 100644
--- a/ubi-utils/src/pfi2bin.c
+++ b/ubi-utils/src/pfi2bin.c
@@ -320,11 +320,12 @@ static FILE*
my_fmemopen (void *buf, size_t size, const char *opentype)
{
FILE* f;
+ size_t ret;
assert(strcmp(opentype, "r") == 0);
f = tmpfile();
- fwrite(buf, 1, size, f);
+ ret = fwrite(buf, 1, size, f);
rewind(f);
return f;