From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1040 invoked by alias); 16 Oct 2002 10:29:22 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 1026 invoked from network); 16 Oct 2002 10:29:20 -0000 Received: from unknown (HELO mail-out1.apple.com) (17.254.0.52) by sources.redhat.com with SMTP; 16 Oct 2002 10:29:20 -0000 Received: from mailgate2.apple.com (A17-129-100-225.apple.com [17.129.100.225]) by mail-out1.apple.com (8.11.3/8.11.3) with ESMTP id g9GATKi05189 for ; Wed, 16 Oct 2002 03:29:20 -0700 (PDT) Received: from scv2.apple.com (scv2.apple.com) by mailgate2.apple.com (Content Technologies SMTPRS 4.2.1) with ESMTP id for ; Wed, 16 Oct 2002 03:29:20 -0700 Received: from platinum.local. (vpn-scv-x3-29.apple.com [17.219.194.29]) by scv2.apple.com (8.11.3/8.11.3) with ESMTP id g9GATJc25221 for ; Wed, 16 Oct 2002 03:29:19 -0700 (PDT) Date: Wed, 16 Oct 2002 03:29:00 -0000 Subject: [PATCH] minor nit in read_tilde_fields Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v543) From: Klee Dienes To: gdb-patches@sources.redhat.com Content-Transfer-Encoding: 7bit In-Reply-To: Message-Id: <1F507DC8-E0F2-11D6-B237-00039396EEB8@apple.com> X-SW-Source: 2002-10/txt/msg00278.txt.bz2 The following patch fixes what I suspect is an "oops" in the 2002-10-11 patch to stabsread.c: 2002-10-16 Klee Dienes * 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]. diff -u -r1.21 stabsread.c --- stabsread.c 2002/10/12 18:23:58 1.21 +++ stabsread.c 2002/10/16 10:29:05 @@ -4189,7 +4189,7 @@ { 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;