summaryrefslogtreecommitdiff
path: root/src/game
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/game
parentd71cc434e40c73d6557529f58287c5bbc5451114 (diff)
downloadopenttd-fad2d3c709a6d468024284d9e6b7830f7c62e917.tar.xz
(svn r26505) -Fix (r23634, r26493): Incorrect usage of strecpy/strecat
Diffstat (limited to 'src/game')
-rw-r--r--src/game/game_text.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/game_text.cpp b/src/game/game_text.cpp
index 1717dcf9a..83dc9a604 100644
--- a/src/game/game_text.cpp
+++ b/src/game/game_text.cpp
@@ -379,7 +379,7 @@ void ReconsiderGameScriptLanguage()
if (_current_data == NULL) return;
char temp[MAX_PATH];
- strecpy(temp, _current_language->file, temp + sizeof(temp));
+ strecpy(temp, _current_language->file, lastof(temp));
/* Remove the extension */
char *l = strrchr(temp, '.');