From 3ffbc0a50081df3ef17811030bad04db8c9bac98 Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Mon, 1 Aug 2005 03:41:34 +0000 Subject: [PATCH] From Josef Ezra : * tracepoint.c (stringify_collection_list): Correct pointer arithmetic. --- gdb/ChangeLog | 6 ++++++ gdb/tracepoint.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 630aca39ecc..18a24512583 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2005-07-31 Daniel Jacobowitz + + From Josef Ezra : + * tracepoint.c (stringify_collection_list): Correct pointer + arithmetic. + 2005-07-31 Daniel Jacobowitz Suggested by Vladimir Prus : diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c index bf4a2c519fa..e522352c3db 100644 --- a/gdb/tracepoint.c +++ b/gdb/tracepoint.c @@ -1443,7 +1443,7 @@ stringify_collection_list (struct collection_list *list, char *string) (long) (list->list[i].end - list->list[i].start)); count += strlen (end); - end += count; + end = temp_buf + count; } for (i = 0; i < list->next_aexpr_elt; i++) -- 2.30.2