mgmt/glusterd: Fix wrong usage of snprintf

Change-Id: I7db752390bb742fb9f6cacce84563ff782ae352b
BUG: 1087677
Signed-off-by: Pranith Kumar K <pkarampu@redhat.com>
Reviewed-on: http://review.gluster.org/7608
Reviewed-by: Sachin Pandit <spandit@redhat.com>
Reviewed-by: Krishnan Parthasarathi <kparthas@redhat.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Tested-by: Vijay Bellur <vbellur@redhat.com>
This commit is contained in:
Pranith Kumar K 2014-04-30 03:31:06 +05:30 committed by Vijay Bellur
parent 889359f845
commit 9934033030

View File

@ -678,7 +678,7 @@ glusterd_handle_snapshot_config (rpcsvc_request_t *req, glusterd_op_t op,
*/
ret = dict_get_int32 (dict, "config-command", &config_command);
if (ret) {
snprintf (err_str, sizeof (err_str),
snprintf (err_str, len,
"Failed to get config-command type");
goto out;
}