]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
2001-08-10 Orjan Friberg <orjanf@axis.com>
authorOrjan Friberg <orjanf@axis.com>
Fri, 10 Aug 2001 10:11:14 +0000 (10:11 +0000)
committerOrjan Friberg <orjanf@axis.com>
Fri, 10 Aug 2001 10:11:14 +0000 (10:11 +0000)
* remote.c (read_frame): Correct off-by-one error in condition.

gdb/ChangeLog
gdb/remote.c

index f6ad62c703818d6b29fefece8630dfcb34495c6e..41c1e21c3912fb044e20a38d913f6700a2004b30 100644 (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-02  Daniel Jacobowitz  <drow@mvista.com>
 
        * core-regset.c (fetch_core_registers):  Remove HAVE_GREGSET_T
index be90b2024e8dda8f23dd7c9868687b39be54f8f5..ecf9afcfea96273cb6dae6261c69a6005dd572e8 100644 (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;