From: simon Date: Fri, 15 Jan 1999 11:27:36 +0000 (+0000) Subject: Remove buffering on malloc log file X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/commitdiff_plain/c662dbc0487ce51a112128d594ec2b5df7bc4661 Remove buffering on malloc log file git-svn-id: svn://svn.tartarus.org/sgt/putty@13 cda61777-01e9-0310-a592-d414129be87e --- 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); }