diff options
author | dsmith <dsmith> | 2007-07-09 22:40:56 +0000 |
---|---|---|
committer | dsmith <dsmith> | 2007-07-09 22:40:56 +0000 |
commit | b7133b5f56a6bf86950bdb6d49b1eabe3c7714e3 (patch) | |
tree | 403349d64791d0c5542e30f69a3c8b9ddcc52a48 /runtime/staprun/relay.c | |
parent | 61c97c45390e3fd5c267fdbc58a580914354527f (diff) | |
download | systemtap-steved-b7133b5f56a6bf86950bdb6d49b1eabe3c7714e3.tar.gz systemtap-steved-b7133b5f56a6bf86950bdb6d49b1eabe3c7714e3.tar.xz systemtap-steved-b7133b5f56a6bf86950bdb6d49b1eabe3c7714e3.zip |
2007-07-09 David Smith <dsmith@redhat.com>
* relay.c (init_relayfs): Fixed a buffer size bug introduced by
the last change.
Diffstat (limited to 'runtime/staprun/relay.c')
-rw-r--r-- | runtime/staprun/relay.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/staprun/relay.c b/runtime/staprun/relay.c index 9c77517a..84e80660 100644 --- a/runtime/staprun/relay.c +++ b/runtime/staprun/relay.c @@ -121,6 +121,7 @@ int init_relayfs(void) { int i; struct statfs st; + char rqbuf[128]; char buf[PATH_MAX], relay_filebase[PATH_MAX]; dbug(1, "initializing relayfs\n"); @@ -136,7 +137,7 @@ int init_relayfs(void) return -1; } - if (send_request(STP_BULK, buf, sizeof(buf)) > 0) + if (send_request(STP_BULK, rqbuf, sizeof(rqbuf)) > 0) bulkmode = 1; for (i = 0; i < NR_CPUS; i++) { |