1
0
Fork 0

Fix: [Script] Save config item values up to 10 digits + 1 for sign + 1 for termination, enough to fit min and max int

pull/10628/head
SamuXarick 2023-02-03 21:35:21 +00:00 committed by rubidium42
parent 381f1ac777
commit 81b53b36c8
1 changed files with 1 additions and 1 deletions

View File

@ -215,7 +215,7 @@ std::string ScriptConfig::SettingsToString() const
char *s = string;
*s = '\0';
for (const auto &item : this->settings) {
char no[10];
char no[INT32_DIGITS_WITH_SIGN_AND_TERMINATION];
seprintf(no, lastof(no), "%d", item.second);
/* Check if the string would fit in the destination */