aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Chastain <mec@google.com>2003-01-04 04:07:16 +0000
committerMichael Chastain <mec@google.com>2003-01-04 04:07:16 +0000
commit77afa6398a39cfe5da535c23c6c7c584c577081d (patch)
treefc2de7d38b8b3d51c8cf2f73b5ffc7bf387b41ce /gdb/testsuite
parent * gdb.base/store.exp: Fix regular expressions. (diff)
downloadbinutils-gdb-77afa6398a39cfe5da535c23c6c7c584c577081d.tar.gz
binutils-gdb-77afa6398a39cfe5da535c23c6c7c584c577081d.tar.bz2
binutils-gdb-77afa6398a39cfe5da535c23c6c7c584c577081d.zip
2003-01-03 Michael Chastain <mec@shout.net>
* gdb.base/miscexprs.c: Fix PR gdb/697, "buglet in testsuite/gdb.base/miscexprs.c, off-by-1 array reference".
Diffstat (limited to 'gdb/testsuite')
-rw-r--r--gdb/testsuite/ChangeLog5
-rw-r--r--gdb/testsuite/gdb.base/miscexprs.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index fdf0e1025e2..5aef1ff4d19 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2003-01-03 Michael Chastain <mec@shout.net>
+
+ * gdb.base/miscexprs.c: Fix PR gdb/697, "buglet in
+ testsuite/gdb.base/miscexprs.c, off-by-1 array reference".
+
2003-01-03 Daniel Jacobowitz <drow@mvista.com>
* gdb.base/store.exp: Fix regular expressions.
diff --git a/gdb/testsuite/gdb.base/miscexprs.c b/gdb/testsuite/gdb.base/miscexprs.c
index 580255d27cf..fe88fb2f8e8 100644
--- a/gdb/testsuite/gdb.base/miscexprs.c
+++ b/gdb/testsuite/gdb.base/miscexprs.c
@@ -33,7 +33,7 @@ main ()
ibig.i[100] = 5;
cbig.c[0] = '\0';
- cbig.c[100] = 'A';
+ cbig.c[99] = 'A';
fbig.f[100] = 11.99999;
dbig.d[202] = 9.99999999;
sbig.s[90] = 255;