summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
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 eb609e5ccb6..d3693b24648 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) {