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 | |
parent | 7634bb6e639032a2d38d608b56e70f895794f5da (diff) | |
download | gdb-77afa6398a39cfe5da535c23c6c7c584c577081d.zip gdb-77afa6398a39cfe5da535c23c6c7c584c577081d.tar.gz gdb-77afa6398a39cfe5da535c23c6c7c584c577081d.tar.bz2 |
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".
-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 fdf0e10..5aef1ff 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 580255d..fe88fb2 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; |