public inbox for archer-commits@sourceware.org
help / color / mirror / Atom feed
* [SCM]  archer-tromey-charset: fix off-by-one error when concatenating strings
@ 2009-01-16  2:24 tromey
  0 siblings, 0 replies; only message in thread
From: tromey @ 2009-01-16  2:24 UTC (permalink / raw)
  To: archer-commits

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 <tromey@redhat.com>
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.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-01-16  2:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-16  2:24 [SCM] archer-tromey-charset: fix off-by-one error when concatenating strings tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).