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 /src/OSSupport | |
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-- | src/OSSupport/File.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/OSSupport/File.cpp b/src/OSSupport/File.cpp index 9f7c0d439..a55346c48 100644 --- a/src/OSSupport/File.cpp +++ b/src/OSSupport/File.cpp @@ -440,9 +440,11 @@ AString cFile::ReadWholeFile(const AString & a_FileName) int cFile::Printf(const char * a_Fmt, ...) { AString buf; - va_list args; + va_list args, argsCopy; va_start(args, a_Fmt); - AppendVPrintf(buf, a_Fmt, args); + va_start(argsCopy, a_Fmt); + AppendVPrintf(buf, a_Fmt, args, argsCopy); + va_end(argsCopy); va_end(args); return Write(buf.c_str(), buf.length()); } |