diff options
author | Vijay Bellur <vijay@gluster.com> | 2010-09-17 06:14:24 +0000 |
---|---|---|
committer | Vijay Bellur <vijay@dev.gluster.com> | 2010-09-17 06:23:57 -0700 |
commit | 941db02552773bcd6a3782e793fcbc41d4268697 (patch) | |
tree | 2f0e552aa49fb18efe3b02a874ce97f60d47ae35 /xlators/mount | |
parent | 91174380ae00a108512a4230f4cd2c1901d4bb94 (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.c | 2 |
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 774501347..686391b92 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, |