mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 20:05:41 +00:00
Fix "array subscript is above array bounds" bug.
svn path=/trunk/; revision=43430
This commit is contained in:
parent
ce7bb91b16
commit
bb99554339
1 changed files with 1 additions and 1 deletions
|
@ -547,7 +547,7 @@ getpacket (void)
|
||||||
count = 0;
|
count = 0;
|
||||||
|
|
||||||
/* now, read until a # or end of buffer is found */
|
/* now, read until a # or end of buffer is found */
|
||||||
while (count < BUFMAX)
|
while (count < BUFMAX - 1)
|
||||||
{
|
{
|
||||||
ch = getDebugChar ();
|
ch = getDebugChar ();
|
||||||
if (ch == '$')
|
if (ch == '$')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue