diff --git a/tools/perf/util/annotate.c b/tools/perf/util/annotate.c index ef1866a902c442158fa348bcd3f7cb1b1fb381b4..bee0fee122f85427671cd3a325520ff3b82d7fc6 100644 --- a/tools/perf/util/annotate.c +++ b/tools/perf/util/annotate.c @@ -1892,7 +1892,7 @@ static char *expand_tabs(char *line, char **storage, size_t *storage_len) } /* Expand the last region. */ - len = line_len + 1 - src; + len = line_len - src; memcpy(&new_line[dst], &line[src], len); dst += len; new_line[dst] = '\0';