From ff17beb99998392e9f00bd50487966ae2dccf6f3 Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Wed, 27 Aug 2014 20:17:13 -0500 Subject: Fix incorrect strncat usage in CL_ServerInfoPacket --- src/client/cl_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/client') 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 ); } -- cgit