src/network/network_chat_gui.cpp
changeset 10310 ca2eb5811a07
parent 10295 52982b3d0d84
child 10426 4a77f7049b5e
--- a/src/network/network_chat_gui.cpp	Sun Nov 02 11:15:26 2008 +0000
+++ b/src/network/network_chat_gui.cpp	Sun Nov 02 11:20:15 2008 +0000
@@ -97,7 +97,7 @@
 
 	for (bufp = buf; lines != 0; lines--) {
 		ChatMessage *cmsg = &_chatmsg_list[msg_count++];
-		ttd_strlcpy(cmsg->message, bufp, sizeof(cmsg->message));
+		strecpy(cmsg->message, bufp, lastof(cmsg->message));
 
 		/* The default colour for a message is company colour. Replace this with
 		 * white for any additional lines */