Fix "array subscript is above array bounds" bug.

svn path=/trunk/; revision=43430
This commit is contained in:
Dmitry Gorbachev 2009-10-12 23:52:33 +00:00
parent ce7bb91b16
commit bb99554339

View file

@ -547,7 +547,7 @@ getpacket (void)
count = 0;
/* now, read until a # or end of buffer is found */
while (count < BUFMAX)
while (count < BUFMAX - 1)
{
ch = getDebugChar ();
if (ch == '$')