Patchwork [BUG:2632] mgmt/Glusterd: prevent memory overflow

login
register
Submitter Kaushik BV
Date 2011-03-30 11:33:06
Message ID <1301484786-5180-2-git-send-email-kaushikbv@gluster.com>
Download mbox | patch
Permalink /patch/6643/
State Accepted
Delegated to: Vijay Bellur
Headers show

Comments

Kaushik BV - 2011-03-30 11:33:06
From: Kaushik BV <kaushikbv@gluster.com>


Signed-off-by: Kaushik BV <kaushikbv@gluster.com>
---
 xlators/mgmt/glusterd/src/glusterd-op-sm.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/xlators/mgmt/glusterd/src/glusterd-op-sm.c b/xlators/mgmt/glusterd/src/glusterd-op-sm.c
index f2c5c3f..4696b6c 100644
--- a/xlators/mgmt/glusterd/src/glusterd-op-sm.c
+++ b/xlators/mgmt/glusterd/src/glusterd-op-sm.c
@@ -3593,7 +3593,7 @@  stop_gsync (char *master, char *slave, char **op_errstr)
         pid_t           pid     = 0;
         FILE            *file   = NULL;
         char            pidfile[PATH_MAX] = {0,};
-        char            buf [256] = {0,};
+        char            buf [1024] = {0,};
 
         ret = gsync_status (master, slave, &status);
         if (ret == 0 && status == -1) {