summaryrefslogtreecommitdiff
path: root/src/strings.cpp
diff options
context:
space:
mode:
authorskidd13 <skidd13@openttd.org>2008-11-02 11:20:15 +0000
committerskidd13 <skidd13@openttd.org>2008-11-02 11:20:15 +0000
commit9b282b3e51864af68b752831f68d719e9926c206 (patch)
tree852231dcb9853107b3876ca33a89cbeb47f20133 /src/strings.cpp
parent44a774a2775bfdbf270eac3adcd778e1ae4cba93 (diff)
downloadopenttd-9b282b3e51864af68b752831f68d719e9926c206.tar.xz
(svn r14555) -Codechange: replace ttd_strlcat and ttd_strlcpy with strecat and strecpy where direct conversion is possible
Diffstat (limited to 'src/strings.cpp')
-rw-r--r--src/strings.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/strings.cpp b/src/strings.cpp
index da08581a0..010298062 100644
--- a/src/strings.cpp
+++ b/src/strings.cpp
@@ -1271,7 +1271,7 @@ bool ReadLanguagePack(int lang_index)
_langpack_offs = langpack_offs;
const char *c_file = strrchr(_dynlang.ent[lang_index].file, PATHSEPCHAR) + 1;
- ttd_strlcpy(_dynlang.curr_file, c_file, lengthof(_dynlang.curr_file));
+ strecpy(_dynlang.curr_file, c_file, lastof(_dynlang.curr_file));
_dynlang.curr = lang_index;
_dynlang.text_dir = (TextDirection)lang_pack->text_dir;