summaryrefslogtreecommitdiff
path: root/gdb/remote.c
diff options
context:
space:
mode:
authorOrjan Friberg <orjanf@axis.com>2001-08-10 09:59:33 +0000
committerOrjan Friberg <orjanf@axis.com>2001-08-10 09:59:33 +0000
commitcb0126d427394fbd5e0bbc87f5c25e2b2179d0c4 (patch)
tree0bb21319901ca9938e3ef504264492cc81545e62 /gdb/remote.c
parentd69602b8d25b79f4897b004cce7e6cf9d364152a (diff)
downloadgdb-cb0126d427394fbd5e0bbc87f5c25e2b2179d0c4.tar.gz
2001-08-10 Orjan Friberg <orjanf@axis.com>
* remote.c (read_frame): Correct off-by-one error in condition.
Diffstat (limited to 'gdb/remote.c')
-rw-r--r--gdb/remote.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/remote.c b/gdb/remote.c
index be90b2024e8..ecf9afcfea9 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -4189,7 +4189,7 @@ read_frame (char *buf,
if (repeat > 0 && repeat <= 255
&& bc > 0
- && bc + repeat < sizeof_buf - 1)
+ && bc + repeat - 1 < sizeof_buf - 1)
{
memset (&buf[bc], buf[bc - 1], repeat);
bc += repeat;