mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-22 12:31:32 +00:00
Fix textcmd scanning for zero length netcmds
This commit is contained in:
parent
6e1463e399
commit
896f6cf48a
1 changed files with 1 additions and 1 deletions
|
@ -448,7 +448,7 @@ static void ExtraDataTicker(void)
|
||||||
UINT8 *curpos = textcmd->cmd;
|
UINT8 *curpos = textcmd->cmd;
|
||||||
UINT8 *bufferend = &curpos[textcmd->length];
|
UINT8 *bufferend = &curpos[textcmd->length];
|
||||||
|
|
||||||
while (curpos + NETCMD_HEADER_SIZE < bufferend)
|
while (curpos + NETCMD_HEADER_SIZE <= bufferend)
|
||||||
{
|
{
|
||||||
const UINT8 id = curpos[netcmd_type];
|
const UINT8 id = curpos[netcmd_type];
|
||||||
const UINT8 length = curpos[netcmd_length];
|
const UINT8 length = curpos[netcmd_length];
|
||||||
|
|
Loading…
Reference in a new issue