projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Trim application manifests as much as MS' documentation and Owen's experiments
[u/mdw/putty]
/
logging.c
diff --git
a/logging.c
b/logging.c
index
cb9c536
..
ab765b3
100644
(file)
--- 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 ? "a
b" : "wb
");
ctx->lgfp = f_open(ctx->currlogfilename, fmode);
if (ctx->lgfp)
ctx->state = L_OPEN;