diff options
author | Mattes D <github@xoft.cz> | 2014-01-15 22:41:45 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-01-15 22:41:45 +0100 |
commit | 4974bf2832b874279fbf6fcca28ca5d6984025b9 (patch) | |
tree | 83323f2103745cea670cc9a04ca182ed9c8db55e /Tools | |
parent | ProtoProxy: use CMake to generate the MSVC project files. (diff) | |
parent | Fixed ProtoProxy compilation. (diff) | |
download | cuberite-4974bf2832b874279fbf6fcca28ca5d6984025b9.tar cuberite-4974bf2832b874279fbf6fcca28ca5d6984025b9.tar.gz cuberite-4974bf2832b874279fbf6fcca28ca5d6984025b9.tar.bz2 cuberite-4974bf2832b874279fbf6fcca28ca5d6984025b9.tar.lz cuberite-4974bf2832b874279fbf6fcca28ca5d6984025b9.tar.xz cuberite-4974bf2832b874279fbf6fcca28ca5d6984025b9.tar.zst cuberite-4974bf2832b874279fbf6fcca28ca5d6984025b9.zip |
Diffstat (limited to '')
-rw-r--r-- | Tools/ProtoProxy/Connection.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/Tools/ProtoProxy/Connection.cpp b/Tools/ProtoProxy/Connection.cpp index de67c6e43..e91b9935e 100644 --- a/Tools/ProtoProxy/Connection.cpp +++ b/Tools/ProtoProxy/Connection.cpp @@ -249,10 +249,12 @@ void cConnection::Run(void) void cConnection::Log(const char * a_Format, ...) { - va_list args; + va_list args, argsCopy; va_start(args, a_Format); + va_start(argsCopy, a_Format); AString msg; - AppendVPrintf(msg, a_Format, args); + AppendVPrintf(msg, a_Format, args, argsCopy); + va_end(argsCopy); va_end(args); AString FullMsg; Printf(FullMsg, "[%5.3f] %s\n", GetRelativeTime(), msg.c_str()); @@ -274,10 +276,12 @@ void cConnection::Log(const char * a_Format, ...) void cConnection::DataLog(const void * a_Data, int a_Size, const char * a_Format, ...) { - va_list args; + va_list args, argsCopy; va_start(args, a_Format); + va_start(argsCopy, a_Format); AString msg; - AppendVPrintf(msg, a_Format, args); + AppendVPrintf(msg, a_Format, args, argsCopy); + va_end(argsCopy); va_end(args); AString FullMsg; AString Hex; |