From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4100 invoked by alias); 16 Jan 2009 02:24:31 -0000 Mailing-List: contact archer-commits-help@sourceware.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Subscribe: Received: (qmail 4073 invoked by uid 306); 16 Jan 2009 02:24:30 -0000 Date: Fri, 16 Jan 2009 02:24:00 -0000 Message-ID: <20090116022430.4058.qmail@sourceware.org> From: tromey@sourceware.org To: archer-commits@sourceware.org Subject: [SCM] archer-tromey-charset: fix off-by-one error when concatenating strings X-Git-Refname: refs/heads/archer-tromey-charset X-Git-Reftype: branch X-Git-Oldrev: 5c5f372a17294de77984a41938fa9ab3bcc445e1 X-Git-Newrev: 3ba4f9e029fb84916f6e16a4d4dfd941796669ce X-SW-Source: 2009-q1/txt/msg00051.txt.bz2 List-Id: The branch, archer-tromey-charset has been updated via 3ba4f9e029fb84916f6e16a4d4dfd941796669ce (commit) from 5c5f372a17294de77984a41938fa9ab3bcc445e1 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email. - Log ----------------------------------------------------------------- commit 3ba4f9e029fb84916f6e16a4d4dfd941796669ce Author: Tom Tromey Date: Thu Jan 15 19:22:52 2009 -0700 fix off-by-one error when concatenating strings ----------------------------------------------------------------------- Summary of changes: gdb/c-lang.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) First 500 lines of diff: diff --git a/gdb/c-lang.c b/gdb/c-lang.c index 003f5c2..85d1672 100644 --- a/gdb/c-lang.c +++ b/gdb/c-lang.c @@ -755,11 +755,11 @@ evaluate_subexp_c (struct type *expect_type, struct expression *exp, } dest_charset = charset_for_string_type (dest_type); + ++*pos; while (*pos < limit) { int len; - ++*pos; len = longest_to_int (exp->elts[*pos].longconst); ++*pos; hooks/post-receive -- Repository for Project Archer.