summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/header.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2011-10-15 16:57:48 +0200
committerIngo Molnar <mingo@elte.hu>2011-10-15 16:57:48 +0200
commitc73a3cb356f94b443aa7624b539493191dbf44c1 (patch)
treea813dbd5e3e2cf77ce33729e07f6fda3a819e3bb /tools/perf/util/header.c
parent910e94dd0cc5abacebf0bd5ffd859f61b9583857 (diff)
parent6c3c5b26d08569ed80e10d3e02d3c997ed1e6e7c (diff)
Merge branch 'perf/core' of git://github.com/acmel/linux into perf/core
Diffstat (limited to 'tools/perf/util/header.c')
-rw-r--r--tools/perf/util/header.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/header.c b/tools/perf/util/header.c
index f2ceb0f7d66..2143a32638c 100644
--- a/tools/perf/util/header.c
+++ b/tools/perf/util/header.c
@@ -1289,7 +1289,7 @@ int build_id_cache__remove_s(const char *sbuild_id, const char *debugdir)
if (access(linkname, F_OK))
goto out_free;
- if (readlink(linkname, filename, size) < 0)
+ if (readlink(linkname, filename, size - 1) < 0)
goto out_free;
if (unlink(linkname))