summaryrefslogtreecommitdiff
path: root/navit/maptool/buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'navit/maptool/buffer.c')
-rw-r--r--navit/maptool/buffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/navit/maptool/buffer.c b/navit/maptool/buffer.c
index 9cc2f995e..2907b0670 100644
--- a/navit/maptool/buffer.c
+++ b/navit/maptool/buffer.c
@@ -30,8 +30,8 @@ save_buffer(char *filename, struct buffer *b, long long offset)
f=fopen(filename,"wb+");
dbg_assert(f != NULL);
- fseeko(f, offset, SEEK_SET);
- fwrite(b->base, b->size, 1, f);
+ dbg_assert(fseeko(f, offset, SEEK_SET)==0);
+ dbg_assert(fwrite(b->base, b->size, 1, f)==1);
fclose(f);
}