summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordsmith <dsmith>2007-07-09 22:40:56 +0000
committerdsmith <dsmith>2007-07-09 22:40:56 +0000
commitb7133b5f56a6bf86950bdb6d49b1eabe3c7714e3 (patch)
tree403349d64791d0c5542e30f69a3c8b9ddcc52a48
parent61c97c45390e3fd5c267fdbc58a580914354527f (diff)
downloadsystemtap-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.
-rw-r--r--runtime/staprun/ChangeLog5
-rw-r--r--runtime/staprun/relay.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/runtime/staprun/ChangeLog b/runtime/staprun/ChangeLog
index b21f3733..aefd87bf 100644
--- a/runtime/staprun/ChangeLog
+++ b/runtime/staprun/ChangeLog
@@ -1,5 +1,10 @@
2007-07-09 David Smith <dsmith@redhat.com>
+ * relay.c (init_relayfs): Fixed a buffer size bug introduced by
+ the last change.
+
+2007-07-09 David Smith <dsmith@redhat.com>
+
* relay.c (init_relayfs): Make sure buffers are big enough to hold
a full path.
* relay_old.c (init_oldrelayfs): Ditto.
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++) {