From fa7b06100f3c49abcac263f27368082040a2f95e Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 2 Nov 2017 16:18:11 +0100 Subject: Fixes for win32 build. --- source/fitz/output.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/fitz/output.c') 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) -- cgit v1.2.3