mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-25 05:11:35 +00:00
The buffer is not meant to be terminated by a null terminator, but instead has a length. (it is always null terminated despite this)
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3015 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
d1a489d83f
commit
2c2560eef4
1 changed files with 1 additions and 1 deletions
|
@ -704,7 +704,7 @@ qboolean SV_ReadPendingProxy(cluster_t *cluster, oproxy_t *pend)
|
|||
|
||||
//make sure there's a double \n somewhere
|
||||
|
||||
for (s = pend->inbuffer; *s; s++)
|
||||
for (s = pend->inbuffer; s<pend->inbuffer+pend->inbuffersize; s++)
|
||||
{
|
||||
if (s[0] == '\n' && (s[1] == '\n' || (s[1] == '\r' && s[2] == '\n')))
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue