From 941db02552773bcd6a3782e793fcbc41d4268697 Mon Sep 17 00:00:00 2001 From: Vijay Bellur Date: Fri, 17 Sep 2010 06:14:24 +0000 Subject: mount/fuse: Perform malloc for appropriate length Signed-off-by: Vijay Bellur Signed-off-by: Vijay Bellur BUG: 1631 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1631 --- xlators/mount/fuse/src/fuse-bridge.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xlators/mount/fuse/src/fuse-bridge.c b/xlators/mount/fuse/src/fuse-bridge.c index 774501347a3..686391b920f 100644 --- a/xlators/mount/fuse/src/fuse-bridge.c +++ b/xlators/mount/fuse/src/fuse-bridge.c @@ -3579,7 +3579,7 @@ init (xlator_t *this_xl) if (cmd_args->volfile_id) { fsname = GF_MALLOC ( strlen (cmd_args->volfile_server) + 1 + - strlen (cmd_args->volfile_server) + 1, + strlen (cmd_args->volfile_id) + 1, gf_fuse_mt_fuse_private_t); if (!fsname) { gf_log ("glusterfs-fuse", GF_LOG_ERROR, -- cgit