summaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/util.c b/src/util.c
index 49b4e2d..566255d 100644
--- a/src/util.c
+++ b/src/util.c
@@ -115,7 +115,10 @@ void Debug(const char *format, ...)
va_list ap;
if (!fp)
+ {
fp=fopen("debug.txt","w");
+ setbuf(fp,NULL);
+ }
if (!fp)
return;