aboutsummaryrefslogtreecommitdiff
path: root/dump.c
diff options
context:
space:
mode:
Diffstat (limited to 'dump.c')
-rw-r--r--dump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dump.c b/dump.c
index 182a2b6..3e651b1 100644
--- a/dump.c
+++ b/dump.c
@@ -2,7 +2,7 @@
int dump_file(const char *filename, int style) {
FILE *fp;
- fp = fopen(filename, "r");
+ fp = fopen(filename, "rb+");
if (!fp) {
return -1;
}