From: Daniel Jacobowitz Date: Mon, 1 Aug 2005 03:41:34 +0000 (+0000) Subject: From Josef Ezra : X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3ffbc0a50081df3ef17811030bad04db8c9bac98;p=binutils-gdb.git From Josef Ezra : * tracepoint.c (stringify_collection_list): Correct pointer arithmetic. --- 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++)