summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorVijay Bellur <vijay@gluster.com>2010-08-17 04:50:59 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-08-17 11:18:00 -0700
commit20cdb9ab09b96e92a2ded9999078b8462dffd8c1 (patch)
tree33f723488302862699ca41eec650913fd0e58b0d /xlators
parentab72e06f7bcf6a815424f67181d44e7a1a465846 (diff)
glusterd: fix for a crash in add-brick
Signed-off-by: Vijay Bellur <vijay@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 1380 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1380
Diffstat (limited to 'xlators')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-op-sm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-op-sm.c b/xlators/mgmt/glusterd/src/glusterd-op-sm.c
index eb609e5cc..d3693b246 100644
--- a/xlators/mgmt/glusterd/src/glusterd-op-sm.c
+++ b/xlators/mgmt/glusterd/src/glusterd-op-sm.c
@@ -892,7 +892,7 @@ glusterd_op_add_brick (gd1_mgmt_stage_op_req *req)
goto out;
list_add_tail (&brickinfo->brick_list, &volinfo->bricks);
- brick = strtok_r (NULL, "\n", &saveptr);
+ brick = strtok_r (NULL, " \n", &saveptr);
i++;
}
@@ -931,7 +931,7 @@ glusterd_op_add_brick (gd1_mgmt_stage_op_req *req)
mybrick++;
}
i++;
- brick = strtok_r (NULL, "\n", &saveptr);
+ brick = strtok_r (NULL, " \n", &saveptr);
}
if (!glfs_started) {