From cfcab7258c87bb2fe0d664d54aaeec84592844ff Mon Sep 17 00:00:00 2001 From: Erdem Aktas Date: Sun, 10 May 2009 02:13:19 -0400 Subject: [PATCH] --- yaml --- r: 147441 b: refs/heads/master c: 82afae6016b672acb90ceb8e773bba0bd977d2a3 h: refs/heads/master i: 147439: 335f59e2e19af0552c04ee067bef32af2f3f9716 v: v3 --- [refs] | 2 +- trunk/Documentation/perf_counter/builtin-top.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index b36928f1c22f..5868d0ce98f3 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: f15b18d0755b3ee4b29991fc2fde535ee41df53c +refs/heads/master: 82afae6016b672acb90ceb8e773bba0bd977d2a3 diff --git a/trunk/Documentation/perf_counter/builtin-top.c b/trunk/Documentation/perf_counter/builtin-top.c index cd6f61d73418..b1549dd27720 100644 --- a/trunk/Documentation/perf_counter/builtin-top.c +++ b/trunk/Documentation/perf_counter/builtin-top.c @@ -523,7 +523,7 @@ static int read_symbol(FILE *in, struct sym_entry *s) if (strstr(sym, "_text_start") || strstr(sym, "_text_end")) return 1; - s->sym = malloc(strlen(str)); + s->sym = malloc(strlen(str)+1); assert(s->sym); strcpy((char *)s->sym, str);