From d2301bdf9a5056afeac2d48e0079a52599b69165 Mon Sep 17 00:00:00 2001 From: megamage Date: Tue, 7 Apr 2009 16:18:48 -0500 Subject: *Fix a crash caused by chatlog. --HG-- branch : trunk --- src/shared/Log.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/shared/Log.cpp') diff --git a/src/shared/Log.cpp b/src/shared/Log.cpp index 5480dfbbc7c..152110012eb 100644 --- a/src/shared/Log.cpp +++ b/src/shared/Log.cpp @@ -837,7 +837,7 @@ void Log::outChat( const char * str, ... ) outTimestamp(chatLogfile); va_list ap; va_start(ap, str); - fprintf(chatLogfile, str, ap); + vfprintf(chatLogfile, str, ap); fprintf(chatLogfile, "\n" ); fflush(chatLogfile); va_end(ap); -- cgit v1.2.3