summaryrefslogtreecommitdiffstats
path: root/bitmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'bitmap.c')
-rw-r--r--bitmap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/bitmap.c b/bitmap.c
index a96e444..768c17f 100644
--- a/bitmap.c
+++ b/bitmap.c
@@ -390,6 +390,7 @@ int CreateBitmap(char *filename, int force, char uuid[16],
}
rv = 0;
+ fflush(fp);
/* make the file be the right size (well, to the nearest byte) */
if (ftruncate(fileno(fp), filesize))
perror("ftrunace");