diff options
| author | Ingo Molnar <mingo@elte.hu> | 2012-03-02 08:40:45 +0100 |
|---|---|---|
| committer | Ingo Molnar <mingo@elte.hu> | 2012-03-02 08:40:45 +0100 |
| commit | 5d85d97c9f6973ba854f35a2d5e80fe68272143e (patch) | |
| tree | 873357b11c3423f2b8798b0c9e8e5ac18735db66 /tools/perf/util/event.c | |
| parent | 30ce2f7eef095d1b8d070740f1948629814fe3c7 (diff) | |
| parent | 1c1bc9223387dacc48eb2b61b0baabe7e9cf47f6 (diff) | |
Merge tag 'perf-urgent-for-mingo' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/urgent
Various smaller perf/urgent fixes.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/util/event.c')
| -rw-r--r-- | tools/perf/util/event.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/util/event.c b/tools/perf/util/event.c index 2044324b755a..2a6f33cd888c 100644 --- a/tools/perf/util/event.c +++ b/tools/perf/util/event.c @@ -74,6 +74,7 @@ static pid_t perf_event__get_comm_tgid(pid_t pid, char *comm, size_t len) if (size >= len) size = len - 1; memcpy(comm, name, size); + comm[size] = '\0'; } else if (memcmp(bf, "Tgid:", 5) == 0) { char *tgids = bf + 5; |
