aboutsummaryrefslogtreecommitdiff
path: root/gdb/stabsread.c
diff options
context:
space:
mode:
authorKlee Dienes <kdienes@apple.com>2002-10-16 17:36:44 +0000
committerKlee Dienes <kdienes@apple.com>2002-10-16 17:36:44 +0000
commit74451869f4a5111186d6a84d8d288e1004d4311b (patch)
treede1d83edcdf470ffb19b85171ef1b7d8d6746f61 /gdb/stabsread.c
parent9f84ab0dcadd16a44d8585d013c597ab1c52aa8d (diff)
downloadgdb-74451869f4a5111186d6a84d8d288e1004d4311b.zip
gdb-74451869f4a5111186d6a84d8d288e1004d4311b.tar.gz
gdb-74451869f4a5111186d6a84d8d288e1004d4311b.tar.bz2
2002-10-16 Klee Dienes <kdienes@apple.com>
* stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2] to get the last character of a char[] buffer, not name[sizeof(vptr_name)-1].
Diffstat (limited to 'gdb/stabsread.c')
-rw-r--r--gdb/stabsread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/stabsread.c b/gdb/stabsread.c
index 00634ac..ea2045e 100644
--- a/gdb/stabsread.c
+++ b/gdb/stabsread.c
@@ -4137,7 +4137,7 @@ read_tilde_fields (struct field_info *fip, char **pp, struct type *type,
{
char *name = TYPE_FIELD_NAME (t, i);
if (!strncmp (name, vptr_name, sizeof (vptr_name) - 2)
- && is_cplus_marker (name[sizeof (vptr_name) - 1]))
+ && is_cplus_marker (name[sizeof (vptr_name) - 2]))
{
TYPE_VPTR_FIELDNO (type) = i;
goto gotit;