Changeset - r26900:ebf9e41eedb4
[Not reviewed]
master
0 1 0
SamuXarick - 16 months ago 2023-02-03 21:35:21
43006711+SamuXarick@users.noreply.github.com
Fix: [Script] Save config item values up to 10 digits + 1 for sign + 1 for termination, enough to fit min and max int
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/script/script_config.cpp
Show inline comments
 
@@ -216,7 +216,7 @@ std::string ScriptConfig::SettingsToStri
 
	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 */
0 comments (0 inline, 0 general)