diff options
author | madmaxoft <github@xoft.cz> | 2014-01-16 08:34:10 +0100 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-01-16 08:34:10 +0100 |
commit | ba49a32c3a5b10bfe1ae90edd08f06acad0389fd (patch) | |
tree | 88454b07729b624e96946d0825f3d7bbb1b9e572 /src/OSSupport/File.cpp | |
parent | Merge pull request #545 from mc-server/VarArgs (diff) | |
download | cuberite-ba49a32c3a5b10bfe1ae90edd08f06acad0389fd.tar cuberite-ba49a32c3a5b10bfe1ae90edd08f06acad0389fd.tar.gz cuberite-ba49a32c3a5b10bfe1ae90edd08f06acad0389fd.tar.bz2 cuberite-ba49a32c3a5b10bfe1ae90edd08f06acad0389fd.tar.lz cuberite-ba49a32c3a5b10bfe1ae90edd08f06acad0389fd.tar.xz cuberite-ba49a32c3a5b10bfe1ae90edd08f06acad0389fd.tar.zst cuberite-ba49a32c3a5b10bfe1ae90edd08f06acad0389fd.zip |
Diffstat (limited to 'src/OSSupport/File.cpp')
-rw-r--r-- | src/OSSupport/File.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/OSSupport/File.cpp b/src/OSSupport/File.cpp index a55346c48..9f7c0d439 100644 --- a/src/OSSupport/File.cpp +++ b/src/OSSupport/File.cpp @@ -440,11 +440,9 @@ AString cFile::ReadWholeFile(const AString & a_FileName) int cFile::Printf(const char * a_Fmt, ...) { AString buf; - va_list args, argsCopy; + va_list args; va_start(args, a_Fmt); - va_start(argsCopy, a_Fmt); - AppendVPrintf(buf, a_Fmt, args, argsCopy); - va_end(argsCopy); + AppendVPrintf(buf, a_Fmt, args); va_end(args); return Write(buf.c_str(), buf.length()); } |