summaryrefslogtreecommitdiffstats
path: root/lib/inifile
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--lib/inifile/iniFile.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/inifile/iniFile.cpp b/lib/inifile/iniFile.cpp
index 66410b901..30f93e5a3 100644
--- a/lib/inifile/iniFile.cpp
+++ b/lib/inifile/iniFile.cpp
@@ -586,7 +586,11 @@ Int64 cIniFile::GetValueSetI(const AString & keyname, const AString & valuename,
Printf(Data, "%lld", defValue);
AString resultstring = GetValueSet(keyname, valuename, Data);
Int64 result;
+#ifdef _WIN32
+ sscanf_s(resultstring.c_str(), "%lld", &result);
+#else
sscanf(resultstring.c_str(), "%lld", &result);
+#endif
return result;
}