diff options
author | Orjan Friberg <orjanf@axis.com> | 2001-08-10 09:59:33 +0000 |
---|---|---|
committer | Orjan Friberg <orjanf@axis.com> | 2001-08-10 09:59:33 +0000 |
commit | cb0126d427394fbd5e0bbc87f5c25e2b2179d0c4 (patch) | |
tree | 0bb21319901ca9938e3ef504264492cc81545e62 /gdb/remote.c | |
parent | d69602b8d25b79f4897b004cce7e6cf9d364152a (diff) | |
download | gdb-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.c | 2 |
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; |