1
0

Using a 2nd argument instead of va_copy().

This seems to be the only reasonable C++03-only solution.
This commit is contained in:
madmaxoft
2014-01-15 18:28:51 +01:00
parent 3fd19df9fd
commit dd6c5779ec
7 changed files with 46 additions and 32 deletions

View File

@@ -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);