diff options
author | Michael Chastain <mec@google.com> | 2003-01-04 04:07:16 +0000 |
---|---|---|
committer | Michael Chastain <mec@google.com> | 2003-01-04 04:07:16 +0000 |
commit | 77afa6398a39cfe5da535c23c6c7c584c577081d (patch) | |
tree | fc2de7d38b8b3d51c8cf2f73b5ffc7bf387b41ce /gdb/testsuite | |
parent | * gdb.base/store.exp: Fix regular expressions. (diff) | |
download | binutils-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/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/miscexprs.c | 2 |
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; |