aboutsummaryrefslogtreecommitdiff
path: root/dump.c
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2022-02-03 09:47:50 -0500
committerJoseph Hunkeler <jhunkeler@gmail.com>2022-02-03 09:47:50 -0500
commit56814c85dff9c497892a76cb43a65380880945cf (patch)
tree8e027df7b64657e34aad98598e24fd01e14c84ec /dump.c
parentbbc3a15672ff677a569bfcd0597cc385ccdb4d59 (diff)
downloadweekly-56814c85dff9c497892a76cb43a65380880945cf.tar.gz
Open with binary mode so Windows can seek properly
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;
}