common.c (MSG_ReadString): replaced MSG_ReadChar with MSG_ReadByte

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


git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1240 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
sezero 2015-08-05 14:47:25 +00:00
parent d17e292442
commit d80a9e1226
1 changed files with 1 additions and 1 deletions

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;