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