summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2004-01-16 02:28:47 +0000
committerIan C <ianc@noddybox.co.uk>2004-01-16 02:28:47 +0000
commit7392aae19593563dd6557af76df0d6b965d6e4c5 (patch)
tree5bfb9fa8a0afc78287a2014c99ff57ff7304d071 /src
parentc1d084c70d3fa63eb787b57c5c6c3f511c95a357 (diff)
Set Debug() file pointer unbuffered
Diffstat (limited to 'src')
-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;