summaryrefslogtreecommitdiff
path: root/gdb/i386-stub.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/i386-stub.c')
-rw-r--r--gdb/i386-stub.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/i386-stub.c b/gdb/i386-stub.c
index 1251567e912..6b91296291f 100644
--- a/gdb/i386-stub.c
+++ b/gdb/i386-stub.c
@@ -474,7 +474,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 == '$')