diff options
author | skidd13 <skidd13@openttd.org> | 2008-11-02 11:20:15 +0000 |
---|---|---|
committer | skidd13 <skidd13@openttd.org> | 2008-11-02 11:20:15 +0000 |
commit | 706dd0f86c2453eadb44742ca62d6c5d690e9238 (patch) | |
tree | 852231dcb9853107b3876ca33a89cbeb47f20133 /src/settings_gui.cpp | |
parent | c03e55b32a4b9bf64c516d38ce75ff5c8ab39748 (diff) | |
download | openttd-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/settings_gui.cpp')
-rw-r--r-- | src/settings_gui.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/settings_gui.cpp b/src/settings_gui.cpp index cab23a1d5..09c92f9c3 100644 --- a/src/settings_gui.cpp +++ b/src/settings_gui.cpp @@ -1190,15 +1190,15 @@ struct CustomCurrencyWindow : Window { case CUSTCURR_SEPARATOR: /* Thousands seperator */ _custom_currency.separator = StrEmpty(str) ? ' ' : str[0]; - ttd_strlcpy(this->separator, str, lengthof(this->separator)); + strecpy(this->separator, str, lastof(this->separator)); break; case CUSTCURR_PREFIX: - ttd_strlcpy(_custom_currency.prefix, str, lengthof(_custom_currency.prefix)); + strecpy(_custom_currency.prefix, str, lastof(_custom_currency.prefix)); break; case CUSTCURR_SUFFIX: - ttd_strlcpy(_custom_currency.suffix, str, lengthof(_custom_currency.suffix)); + strecpy(_custom_currency.suffix, str, lastof(_custom_currency.suffix)); break; case CUSTCURR_TO_EURO: { /* Year to switch to euro */ |