diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2017-11-02 16:18:11 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2017-11-02 16:31:32 +0100 |
commit | fa7b06100f3c49abcac263f27368082040a2f95e (patch) | |
tree | 55500d82cc77242d97eb32740204cad3405fc115 /source/fitz/output.c | |
parent | 1dc763159b03cbd4387713f353f26c890d2c0e52 (diff) | |
download | mupdf-fa7b06100f3c49abcac263f27368082040a2f95e.tar.xz |
Fixes for win32 build.
Diffstat (limited to 'source/fitz/output.c')
-rw-r--r-- | source/fitz/output.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/fitz/output.c b/source/fitz/output.c index a06a81b6..4c6aa6b4 100644 --- a/source/fitz/output.c +++ b/source/fitz/output.c @@ -197,7 +197,7 @@ fz_new_output_with_path(fz_context *ctx, const char *filename, int append) if (errno != ENOENT) fz_throw(ctx, FZ_ERROR_GENERIC, "cannot remove file '%s': %s", filename, strerror(errno)); } - file = fz_fopen_utf8(filename, "rb"); + file = fz_fopen_utf8(filename, append ? "ab" : "wb"); #else /* Ensure we create a brand new file. We don't want to clobber our old file. */ if (!append) |