summaryrefslogtreecommitdiffstats
path: root/xlators/mount
diff options
context:
space:
mode:
authorVijay Bellur <vijay@gluster.com>2010-09-17 06:14:24 +0000
committerVijay Bellur <vijay@dev.gluster.com>2010-09-17 06:23:57 -0700
commit941db02552773bcd6a3782e793fcbc41d4268697 (patch)
tree2f0e552aa49fb18efe3b02a874ce97f60d47ae35 /xlators/mount
parent91174380ae00a108512a4230f4cd2c1901d4bb94 (diff)
mount/fuse: Perform malloc for appropriate length
Signed-off-by: Vijay Bellur <vijay@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1631 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1631
Diffstat (limited to 'xlators/mount')
-rw-r--r--xlators/mount/fuse/src/fuse-bridge.c2
1 files changed, 1 insertions, 1 deletions
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,