summaryrefslogtreecommitdiff
path: root/src/console_cmds.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/console_cmds.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/console_cmds.cpp')
-rw-r--r--src/console_cmds.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/console_cmds.cpp b/src/console_cmds.cpp
index 0d1c8a84e..c216097cf 100644
--- a/src/console_cmds.cpp
+++ b/src/console_cmds.cpp
@@ -250,8 +250,8 @@ DEF_CONSOLE_CMD(ConLoad)
_switch_mode = SM_LOAD;
SetFiosType(item->type);
- ttd_strlcpy(_file_to_saveload.name, FiosBrowseTo(item), sizeof(_file_to_saveload.name));
- ttd_strlcpy(_file_to_saveload.title, item->title, sizeof(_file_to_saveload.title));
+ strecpy(_file_to_saveload.name, FiosBrowseTo(item), lastof(_file_to_saveload.name));
+ strecpy(_file_to_saveload.title, item->title, lastof(_file_to_saveload.title));
} break;
default: IConsolePrintF(CC_ERROR, "%s: Not a savegame.", file);
}
@@ -1230,7 +1230,7 @@ bool NetworkChangeCompanyPassword(byte argc, char *argv[])
if (strcmp(argv[0], "*") == 0) argv[0][0] = '\0';
- ttd_strlcpy(_network_company_info[_local_company].password, argv[0], sizeof(_network_company_info[_local_company].password));
+ strecpy(_network_company_info[_local_company].password, argv[0], lastof(_network_company_info[_local_company].password));
if (!_network_server) {
NetworkClientSetPassword();