~mdw
/
sgt
/
putty
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
37508af
)
Remove buffering on malloc log file
author
simon
<simon@cda61777-01e9-0310-a592-d414129be87e>
Fri, 15 Jan 1999 11:27:36 +0000
(11:27 +0000)
committer
simon
<simon@cda61777-01e9-0310-a592-d414129be87e>
Fri, 15 Jan 1999 11:27:36 +0000
(11:27 +0000)
git-svn-id: svn://svn.tartarus.org/sgt/putty@13
cda61777
-01e9-0310-a592-
d414129be87e
misc.c
patch
|
blob
|
blame
|
history
diff --git
a/misc.c
b/misc.c
index
370eea0
..
6bb09c5
100644
(file)
--- a/
misc.c
+++ b/
misc.c
@@
-13,8
+13,10
@@
static FILE *fp = NULL;
void mlog(char *file, int line) {
- if (!fp)
+ if (!fp)
{
fp = fopen("putty_mem.log", "w");
+ setvbuf(fp, NULL, _IONBF, BUFSIZ);
+ }
if (fp)
fprintf (fp, "%s:%d: ", file, line);
}