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/network/network_data.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/network/network_data.cpp')
-rw-r--r-- | src/network/network_data.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/network_data.cpp b/src/network/network_data.cpp index 767d66cdf..13511cc3b 100644 --- a/src/network/network_data.cpp +++ b/src/network/network_data.cpp @@ -53,7 +53,7 @@ void NetworkSend_Command(TileIndex tile, uint32 p1, uint32 p2, uint32 cmd, Comma c.callback = 0; // _callback_table[0] == NULL } - ttd_strlcpy(c.text, (_cmd_text != NULL) ? _cmd_text : "", lengthof(c.text)); + strecpy(c.text, (_cmd_text != NULL) ? _cmd_text : "", lastof(c.text)); if (_network_server) { /* If we are the server, we queue the command in our 'special' queue. |