diff options
author | dsmith <dsmith> | 2007-07-09 15:04:57 +0000 |
---|---|---|
committer | dsmith <dsmith> | 2007-07-09 15:04:57 +0000 |
commit | 5215930b23d7924dd3e297796a0a6ba1c4886daa (patch) | |
tree | 96fe90b2fe365f675fbf83592f9d085868379057 /runtime/staprun/ctl.c | |
parent | 7c13fcd986c179339858c29cc55bb536152d9df3 (diff) | |
download | systemtap-steved-5215930b23d7924dd3e297796a0a6ba1c4886daa.tar.gz systemtap-steved-5215930b23d7924dd3e297796a0a6ba1c4886daa.tar.xz systemtap-steved-5215930b23d7924dd3e297796a0a6ba1c4886daa.zip |
2007-07-09 David Smith <dsmith@redhat.com>
* ctl.c (read_buffer_info): Make sure buffer is big enough to hold
a full path.
(init_ctl_channel): Ditto.
Diffstat (limited to 'runtime/staprun/ctl.c')
-rw-r--r-- | runtime/staprun/ctl.c | 4 |
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) |