aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/sysfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/util/sysfs.c')
-rw-r--r--tools/perf/util/sysfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/sysfs.c b/tools/perf/util/sysfs.c
index 48c6902e749..f71e9eafe15 100644
--- a/tools/perf/util/sysfs.c
+++ b/tools/perf/util/sysfs.c
@@ -8,7 +8,7 @@ static const char * const sysfs_known_mountpoints[] = {
};
static int sysfs_found;
-char sysfs_mountpoint[PATH_MAX];
+char sysfs_mountpoint[PATH_MAX + 1];
static int sysfs_valid_mountpoint(const char *sysfs)
{