projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc55aec
)
2001-08-10 Orjan Friberg <orjanf@axis.com>
author
Orjan Friberg
<orjanf@axis.com>
Fri, 10 Aug 2001 09:59:33 +0000
(09:59 +0000)
committer
Orjan Friberg
<orjanf@axis.com>
Fri, 10 Aug 2001 09:59:33 +0000
(09:59 +0000)
* remote.c (read_frame): Correct off-by-one error in condition.
gdb/ChangeLog
patch
|
blob
|
history
gdb/remote.c
patch
|
blob
|
history
diff --git
a/gdb/ChangeLog
b/gdb/ChangeLog
index ff0205f3a19d1c934f0eac83cf19dec045beecfc..5e6b10bf538599bd4d3630969eb8c9c75c575ec2 100644
(file)
--- a/
gdb/ChangeLog
+++ b/
gdb/ChangeLog
@@
-1,3
+1,7
@@
+2001-08-10 Orjan Friberg <orjanf@axis.com>
+
+ * remote.c (read_frame): Correct off-by-one error in condition.
+
2001-08-08 Don Howard <dhoward@redhat.com>
* stabsread.c (read_type): Add support for const and volatile
diff --git
a/gdb/remote.c
b/gdb/remote.c
index be90b2024e8dda8f23dd7c9868687b39be54f8f5..ecf9afcfea96273cb6dae6261c69a6005dd572e8 100644
(file)
--- 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;