diff options
author | madmaxoft <github@xoft.cz> | 2014-01-15 18:28:51 +0100 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-01-15 18:28:51 +0100 |
commit | dd6c5779ec5e86ba8755efc77f632a6ffedb6414 (patch) | |
tree | 6b93d74bf952b1f22fe777c7dd5bfbdec568c6f1 /lib | |
parent | Fixed varargs modification. (diff) | |
download | cuberite-dd6c5779ec5e86ba8755efc77f632a6ffedb6414.tar cuberite-dd6c5779ec5e86ba8755efc77f632a6ffedb6414.tar.gz cuberite-dd6c5779ec5e86ba8755efc77f632a6ffedb6414.tar.bz2 cuberite-dd6c5779ec5e86ba8755efc77f632a6ffedb6414.tar.lz cuberite-dd6c5779ec5e86ba8755efc77f632a6ffedb6414.tar.xz cuberite-dd6c5779ec5e86ba8755efc77f632a6ffedb6414.tar.zst cuberite-dd6c5779ec5e86ba8755efc77f632a6ffedb6414.zip |
Diffstat (limited to 'lib')
-rw-r--r-- | lib/inifile/iniFile.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/inifile/iniFile.cpp b/lib/inifile/iniFile.cpp index afa1c110d..c118eecaa 100644 --- a/lib/inifile/iniFile.cpp +++ b/lib/inifile/iniFile.cpp @@ -446,10 +446,12 @@ bool cIniFile::SetValueF(const AString & a_KeyName, const AString & a_ValueName, bool cIniFile::SetValueV(const AString & a_KeyName, const AString & a_ValueName, const char * a_Format, ...) { - va_list args; + va_list args, argsCopy; va_start(args, a_Format); + va_start(argsCopy, a_Format); AString Data; - AppendVPrintf(Data, a_Format, args); + AppendVPrintf(Data, a_Format, args, argsCopy); + va_end(argsCopy); va_end(args); return SetValue(a_KeyName, a_ValueName, Data); } |