summaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorZack Middleton <zturtleman@gmail.com>2014-08-27 20:17:13 -0500
committerTim Angus <tim@ngus.net>2014-08-28 11:20:30 +0100
commitff17beb99998392e9f00bd50487966ae2dccf6f3 (patch)
tree5853f9632c445251901335fbc0b7d6a435cb399c /src/client
parent4af96fd094760c81d9546f189610c6e76c08e136 (diff)
Fix incorrect strncat usage in CL_ServerInfoPacket
Diffstat (limited to 'src/client')
-rw-r--r--src/client/cl_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/cl_main.c b/src/client/cl_main.c
index 80d655c4..6bcf3a7f 100644
--- a/src/client/cl_main.c
+++ b/src/client/cl_main.c
@@ -3885,7 +3885,7 @@ void CL_ServerInfoPacket( netadr_t from, msg_t *msg ) {
Q_strncpyz( info, MSG_ReadString( msg ), MAX_INFO_STRING );
if (strlen(info)) {
if (info[strlen(info)-1] != '\n') {
- strncat(info, "\n", sizeof(info) - 1);
+ Q_strcat(info, sizeof(info), "\n");
}
Com_Printf( "%s: %s", NET_AdrToStringwPort( from ), info );
}