(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 44a774a277
commit 9b282b3e51
23 changed files with 85 additions and 85 deletions

View File

@@ -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.