From 9cd439a37dffbb386778d46335fa75c9a7cc7999 Mon Sep 17 00:00:00 2001 From: jacob Date: Sat, 19 Feb 2005 01:20:16 +0000 Subject: [PATCH] Log file open mode lost a "b" in r5344. Windows at least needs log files to be written in binary mode with the current code. git-svn-id: svn://svn.tartarus.org/sgt/putty@5353 cda61777-01e9-0310-a592-d414129be87e --- logging.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logging.c b/logging.c index cb9c536b..ab765b3b 100644 --- a/logging.c +++ b/logging.c @@ -80,7 +80,7 @@ static void logfopen_callback(void *handle, int mode) if (mode == 0) { ctx->state = L_ERROR; /* disable logging */ } else { - fmode = (mode == 1 ? "a" : "w"); + fmode = (mode == 1 ? "ab" : "wb"); ctx->lgfp = f_open(ctx->currlogfilename, fmode); if (ctx->lgfp) ctx->state = L_OPEN; -- 2.11.0