From 7392aae19593563dd6557af76df0d6b965d6e4c5 Mon Sep 17 00:00:00 2001 From: Ian C Date: Fri, 16 Jan 2004 02:28:47 +0000 Subject: Set Debug() file pointer unbuffered --- src/util.c | 3 +++ 1 file changed, 3 insertions(+) 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; -- cgit v1.2.3