1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-10 01:48:00 +00:00

Flush the log file after logging each packet (so that if we're going

to crash, we get an up-to-the-minute log of what happened just
before then).

[originally from svn r1543]
This commit is contained in:
Simon Tatham 2002-01-10 19:50:07 +00:00
parent 46803abdbe
commit 3e7e1eb9e8

View File

@ -60,6 +60,7 @@ void log_packet(int direction, int type, char *texttype, void *data, int len)
strcpy(dumpdata + 10+1+3*16+2+j, "\n");
fputs(dumpdata, lgfp);
}
fflush(lgfp);
}
}