summaryrefslogtreecommitdiffstats
path: root/src/CommandOutput.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-01-15 22:41:45 +0100
committerMattes D <github@xoft.cz>2014-01-15 22:41:45 +0100
commit4974bf2832b874279fbf6fcca28ca5d6984025b9 (patch)
tree83323f2103745cea670cc9a04ca182ed9c8db55e /src/CommandOutput.cpp
parentProtoProxy: use CMake to generate the MSVC project files. (diff)
parentFixed ProtoProxy compilation. (diff)
downloadcuberite-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 'src/CommandOutput.cpp')
-rw-r--r--src/CommandOutput.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/CommandOutput.cpp b/src/CommandOutput.cpp
index c221682a1..48a695969 100644
--- a/src/CommandOutput.cpp
+++ b/src/CommandOutput.cpp
@@ -16,9 +16,11 @@
void cCommandOutputCallback::Out(const char * a_Fmt, ...)
{
AString Output;
- va_list args;
+ va_list args, argsCopy;
va_start(args, a_Fmt);
- AppendVPrintf(Output, a_Fmt, args);
+ va_start(argsCopy, a_Fmt);
+ AppendVPrintf(Output, a_Fmt, args, argsCopy);
+ va_end(argsCopy);
va_end(args);
Output.append("\n");
Out(Output);