summaryrefslogtreecommitdiff
path: root/src/unix.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
commit706dd0f86c2453eadb44742ca62d6c5d690e9238 (patch)
tree852231dcb9853107b3876ca33a89cbeb47f20133 /src/unix.cpp
parentc03e55b32a4b9bf64c516d38ce75ff5c8ab39748 (diff)
downloadopenttd-706dd0f86c2453eadb44742ca62d6c5d690e9238.tar.xz
(svn r14555) -Codechange: replace ttd_strlcat and ttd_strlcpy with strecat and strecpy where direct conversion is possible
Diffstat (limited to 'src/unix.cpp')
-rw-r--r--src/unix.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/unix.cpp b/src/unix.cpp
index 7fafd3d67..2e62b6399 100644
--- a/src/unix.cpp
+++ b/src/unix.cpp
@@ -154,7 +154,7 @@ static const char *convert_tofrom_fs(iconv_t convd, const char *name)
size_t outlen = sizeof(buf) - 1;
size_t inlen = strlen(name);
- ttd_strlcpy(outbuf, name, sizeof(buf));
+ strecpy(outbuf, name, lastof(buf));
iconv(convd, NULL, NULL, NULL, NULL);
if (iconv(convd, &inbuf, &inlen, &outbuf, &outlen) == (size_t)(-1)) {