summaryrefslogtreecommitdiffstats
path: root/src/OSSupport/File.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-01-16 19:37:46 +0100
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-01-16 19:37:46 +0100
commit3373daca2675617117ac60abb7dd3f6511916d2c (patch)
tree6339eb1d6f6682869dd96e46e392b43dfbe6209c /src/OSSupport/File.cpp
parentOBSOLETE'd obsolete functions (diff)
parentMerge pull request #548 from worktycho/documention (diff)
downloadcuberite-3373daca2675617117ac60abb7dd3f6511916d2c.tar
cuberite-3373daca2675617117ac60abb7dd3f6511916d2c.tar.gz
cuberite-3373daca2675617117ac60abb7dd3f6511916d2c.tar.bz2
cuberite-3373daca2675617117ac60abb7dd3f6511916d2c.tar.lz
cuberite-3373daca2675617117ac60abb7dd3f6511916d2c.tar.xz
cuberite-3373daca2675617117ac60abb7dd3f6511916d2c.tar.zst
cuberite-3373daca2675617117ac60abb7dd3f6511916d2c.zip
Diffstat (limited to 'src/OSSupport/File.cpp')
-rw-r--r--src/OSSupport/File.cpp6
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());
}