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/gdb.base/miscexprs.c | |
parent | 7634bb6e639032a2d38d608b56e70f895794f5da (diff) | |
download | binutils-gdb-77afa6398a39cfe5da535c23c6c7c584c577081d.tar.gz |
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/gdb.base/miscexprs.c')
-rw-r--r-- | gdb/testsuite/gdb.base/miscexprs.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |