From 055fabdeaa8afcbe905aeb30d5c945f286aecb6a Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Sat, 26 Nov 2011 15:31:46 +0100 Subject: use binary mode for fopen to make it work with win32 --- src/debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/debug.c') diff --git a/src/debug.c b/src/debug.c index b1c528d..0bb87a2 100644 --- a/src/debug.c +++ b/src/debug.c @@ -140,7 +140,7 @@ inline void debug_buffer_to_file(const char *file, const char *data, const int l { #ifndef STRIP_DEBUG_CODE if (debug_level) { - FILE *f = fopen(file, "w+"); + FILE *f = fopen(file, "wb"); fwrite(data, 1, length, f); fflush(f); fclose(f); -- cgit v1.1-32-gdbae