summaryrefslogtreecommitdiff
path: root/src/script
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2014-04-24 19:09:17 +0000
committerfrosch <frosch@openttd.org>2014-04-24 19:09:17 +0000
commitfad2d3c709a6d468024284d9e6b7830f7c62e917 (patch)
treed510c3f21a6f9f13349735f267172305ef70409d /src/script
parentd71cc434e40c73d6557529f58287c5bbc5451114 (diff)
downloadopenttd-fad2d3c709a6d468024284d9e6b7830f7c62e917.tar.xz
(svn r26505) -Fix (r23634, r26493): Incorrect usage of strecpy/strecat
Diffstat (limited to 'src/script')
-rw-r--r--src/script/script_config.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/script/script_config.cpp b/src/script/script_config.cpp
index 95e278954..768ff5e21 100644
--- a/src/script/script_config.cpp
+++ b/src/script/script_config.cpp
@@ -197,10 +197,10 @@ void ScriptConfig::SettingsToString(char *string, const char *last) const
/* If it doesn't fit, skip the next settings */
if (string + needed_size > last) break;
- s = strecat(s, last, (*it).first);
- s = strecat(s, last, "=");
- s = strecat(s, last, no);
- s = strecat(s, last, ",");
+ s = strecat(s, (*it).first, last);
+ s = strecat(s, "=", last);
+ s = strecat(s, no, last);
+ s = strecat(s, ",", last);
}
/* Remove the last ',', but only if at least one setting was saved. */