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:
Spoike 2008-06-25 07:09:39 +00:00
parent d1a489d83f
commit 2c2560eef4

View file

@ -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;