aboutsummaryrefslogtreecommitdiff
path: root/gdb/sparc-stub.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2006-03-30 16:44:12 +0000
committerDaniel Jacobowitz <drow@false.org>2006-03-30 16:44:12 +0000
commit295bf0ffc74b3e51101f5b1765dd5f5e2405bd02 (patch)
tree4f6827c57fb13e35e5fdd3c1ad9c3283727f9c67 /gdb/sparc-stub.c
parent7abfe01489d2422ae0ae519e0e9aa1ec0cc3c288 (diff)
downloadgdb-295bf0ffc74b3e51101f5b1765dd5f5e2405bd02.zip
gdb-295bf0ffc74b3e51101f5b1765dd5f5e2405bd02.tar.gz
gdb-295bf0ffc74b3e51101f5b1765dd5f5e2405bd02.tar.bz2
* 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.
Diffstat (limited to 'gdb/sparc-stub.c')
-rw-r--r--gdb/sparc-stub.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/sparc-stub.c b/gdb/sparc-stub.c
index 1e6298a..c12d436 100644
--- a/gdb/sparc-stub.c
+++ b/gdb/sparc-stub.c
@@ -306,7 +306,7 @@ retry:
count = 0;
/* now, read until a # or end of buffer is found */
- while (count < BUFMAX)
+ while (count < BUFMAX - 1)
{
ch = getDebugChar ();
if (ch == '$')