diff --git a/src/shared/Log.cpp b/src/shared/Log.cpp index 5480dfbbc7..152110012e 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);