aboutsummaryrefslogtreecommitdiff
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
commitfb6e5c55206f732aac9f05cddacb29e46f43e5c0 (patch)
tree1a275b9641371aec34227e06a9e23c6f15ee1ed5 /gdb/remote.c
parentcc55aec9b76ca04bc0913b94c133b2851ec05224 (diff)
downloadgdb-fb6e5c55206f732aac9f05cddacb29e46f43e5c0.zip
gdb-fb6e5c55206f732aac9f05cddacb29e46f43e5c0.tar.gz
gdb-fb6e5c55206f732aac9f05cddacb29e46f43e5c0.tar.bz2
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 be90b20..ecf9afc 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;