From 3d56bd5eb8bef8032e9448929533c2feaa11f08f Mon Sep 17 00:00:00 2001 From: Machiavelli Date: Fri, 29 Jul 2011 15:01:26 +0200 Subject: Core/CLI: Fix a possible crash in utf8print on linux. (Remove parsing non-existent va_args) --- src/server/worldserver/CommandLine/CliRunnable.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src') diff --git a/src/server/worldserver/CommandLine/CliRunnable.cpp b/src/server/worldserver/CommandLine/CliRunnable.cpp index 17acb88c460..5af2a4972db 100755 --- a/src/server/worldserver/CommandLine/CliRunnable.cpp +++ b/src/server/worldserver/CommandLine/CliRunnable.cpp @@ -104,9 +104,7 @@ void utf8print(void* /*arg*/, const char* str) printf(temp_buf); #else { - va_list v; - vprintf(str, v); - va_end(v); + printf(str); fflush(stdout); } #endif -- cgit v1.2.3