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