mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-09 17:38:00 +00:00
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.
[originally from svn r5353]
[r5344 == f73fcb0424
]
This commit is contained in:
parent
53d4c434e7
commit
5b15dca2da
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user