X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=misc.c;h=6bb09c535d612db0cae34efe8752af49c6e3a9fb;hb=edf8b22b9825e5ac916b0e282e4c212921b8e00c;hp=370eea07a1a5ae62a12ec3c7e959c541ad3085b0;hpb=c74130d423fd83a65c51b7634e3c34aaf557ae68;p=PuTTY.git diff --git a/misc.c b/misc.c index 370eea07..6bb09c53 100644 --- 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); }