mirror of
https://github.com/UberGames/ioef.git
synced 2024-11-27 22:42:09 +00:00
Fix incorrect strncat usage in CL_ServerInfoPacket
This commit is contained in:
parent
b0596248ff
commit
0853c85e19
1 changed files with 1 additions and 1 deletions
|
@ -3844,7 +3844,7 @@ void CL_ServerInfoPacket( netadr_t from, msg_t *msg ) {
|
||||||
Q_strncpyz( info, MSG_ReadString( msg ), MAX_INFO_STRING );
|
Q_strncpyz( info, MSG_ReadString( msg ), MAX_INFO_STRING );
|
||||||
if (strlen(info)) {
|
if (strlen(info)) {
|
||||||
if (info[strlen(info)-1] != '\n') {
|
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 );
|
Com_Printf( "%s: %s", NET_AdrToStringwPort( from ), info );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue