* i386-stub.c (getpacket): Fix array overflow.
* m32r-stub.c (getpacket): Likewise. * m68k-stub.c (getpacket): Likewise. * sh-stub.c (getpacket): Likewise. * sparc-stub.c (getpacket): Likewise.
This commit is contained in:
parent
7abfe01489
commit
295bf0ffc7
6 changed files with 13 additions and 5 deletions
|
@ -605,7 +605,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 == '$')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue