mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-10 07:21:58 +00:00
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:
parent
d17e292442
commit
d80a9e1226
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue