diff --git a/src/d_clisrv.c b/src/d_clisrv.c index a733c79f9..f745bae3e 100644 --- a/src/d_clisrv.c +++ b/src/d_clisrv.c @@ -448,7 +448,7 @@ static void ExtraDataTicker(void) UINT8 *curpos = textcmd->cmd; 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 length = curpos[netcmd_length];