*Fix a crash caused by chatlog.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-04-07 16:18:48 -05:00
parent fe7a8e1bc9
commit d2301bdf9a
+1 -1
View File
@@ -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);