common.c (MSG_ReadString): replaced MSG_ReadChar with MSG_ReadByte

to avoid potentional vulnerability (icculus.org quake2 svn rev. 180.)


git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1240 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
Ozkan Sezer 2015-08-05 14:47:25 +00:00
parent 2fdd3946bc
commit d8704bc2d8

View file

@ -812,7 +812,7 @@ const char *MSG_ReadString (void)
l = 0;
do
{
c = MSG_ReadChar ();
c = MSG_ReadByte ();
if (c == -1 || c == 0)
break;
string[l] = c;