From 5b27bd62f60532486d288a60193b583d2e6cb8c0 Mon Sep 17 00:00:00 2001 From: Ian C Date: Sun, 17 Sep 2006 00:01:19 +0000 Subject: Updates --- src/util.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/util.c') diff --git a/src/util.c b/src/util.c index 566255d..8ce2822 100644 --- a/src/util.c +++ b/src/util.c @@ -111,13 +111,21 @@ const char *Dirname(const char *path) void Debug(const char *format, ...) { + static const int USE_STDERR=1; static FILE *fp=NULL; va_list ap; if (!fp) { - fp=fopen("debug.txt","w"); - setbuf(fp,NULL); + if (USE_STDERR) + { + fp=stderr; + } + else + { + fp=fopen("debug.txt","w"); + setbuf(fp,NULL); + } } if (!fp) -- cgit v1.2.3