2001-08-10 Orjan Friberg <orjanf@axis.com>

* remote.c (read_frame): Correct off-by-one error in condition.
This commit is contained in:
Orjan Friberg 2001-08-10 09:59:33 +00:00
parent cc55aec9b7
commit fb6e5c5520
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -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;