From 5215930b23d7924dd3e297796a0a6ba1c4886daa Mon Sep 17 00:00:00 2001 From: dsmith Date: Mon, 9 Jul 2007 15:04:57 +0000 Subject: 2007-07-09 David Smith * ctl.c (read_buffer_info): Make sure buffer is big enough to hold a full path. (init_ctl_channel): Ditto. --- runtime/staprun/ctl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'runtime/staprun/ctl.c') 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) -- cgit