From e04d45facc722d944d51439f4ae57b2af2a03d3e Mon Sep 17 00:00:00 2001 From: Rajesh Amaravathi Date: Tue, 24 Jan 2012 12:03:56 +0530 Subject: glusterd: fix transpose of memset arguments a fix for transposed arguments to memset in glusterd_get_all_volnames function introduced in volume status enhancement. Change-Id: Iaea60c7d19b23992684f91b016b0841e2153b0a9 BUG: 765464 Signed-off-by: Rajesh Amaravathi Reviewed-on: http://review.gluster.com/2680 Reviewed-by: Amar Tumballi Tested-by: Gluster Build System --- xlators/mgmt/glusterd/src/glusterd-utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xlators') diff --git a/xlators/mgmt/glusterd/src/glusterd-utils.c b/xlators/mgmt/glusterd/src/glusterd-utils.c index bf33e9128..efc7069d8 100644 --- a/xlators/mgmt/glusterd/src/glusterd-utils.c +++ b/xlators/mgmt/glusterd/src/glusterd-utils.c @@ -3477,7 +3477,7 @@ glusterd_get_all_volnames (dict_t *dict) GF_ASSERT (priv); list_for_each_entry (entry, &priv->volumes, vol_list) { - memset (key, sizeof (key), 0); + memset (key, 0, sizeof (key)); snprintf (key, sizeof (key), "vol%d", vol_count); ret = dict_set_str (dict, key, entry->volname); if (ret) -- cgit