summaryrefslogtreecommitdiffstats
path: root/runtime/staprun/ctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/staprun/ctl.c')
-rw-r--r--runtime/staprun/ctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/staprun/ctl.c b/runtime/staprun/ctl.c
index 2996174b..53c27190 100644
--- a/runtime/staprun/ctl.c
+++ b/runtime/staprun/ctl.c
@@ -15,7 +15,7 @@
/* This is only used in the old relayfs code */
static void read_buffer_info(void)
{
- char buf[128];
+ char buf[PATH_MAX];
struct statfs st;
int fd, len, ret;
@@ -48,7 +48,7 @@ static void read_buffer_info(void)
int init_ctl_channel(void)
{
- char buf[128];
+ char buf[PATH_MAX];
struct statfs st;
if (statfs("/sys/kernel/debug", &st) == 0 && (int) st.f_type == (int) DEBUGFS_MAGIC)