(svn r14555) -Codechange: replace ttd_strlcat and ttd_strlcpy with strecat and strecpy where direct conversion is possible

This commit is contained in:
skidd13
2008-11-02 11:20:15 +00:00
parent c03e55b32a
commit 706dd0f86c
23 changed files with 85 additions and 85 deletions

View File

@@ -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 */