mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-03-10 12:01:43 +00:00
net_dgrm.c (_Datagram_Connect): fix the printf call in the CCREP_REJECT case.
manually null terminate the reason string buffer. git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@101 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
18422123df
commit
1018692eaa
1 changed files with 2 additions and 1 deletions
|
@ -1324,8 +1324,9 @@ static qsocket_t *_Datagram_Connect (char *host)
|
|||
if (ret == CCREP_REJECT)
|
||||
{
|
||||
reason = MSG_ReadString();
|
||||
Con_Printf(reason);
|
||||
Con_Printf("%s\n", reason);
|
||||
Q_strncpy(m_return_reason, reason, 31);
|
||||
m_return_reason[31] = 0;
|
||||
goto ErrorReturn;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue