From 9934033030d3afa039c0686f77a4c00fad270131 Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Wed, 30 Apr 2014 03:31:06 +0530 Subject: mgmt/glusterd: Fix wrong usage of snprintf Change-Id: I7db752390bb742fb9f6cacce84563ff782ae352b BUG: 1087677 Signed-off-by: Pranith Kumar K Reviewed-on: http://review.gluster.org/7608 Reviewed-by: Sachin Pandit Reviewed-by: Krishnan Parthasarathi Reviewed-by: Vijay Bellur Tested-by: Vijay Bellur --- xlators/mgmt/glusterd/src/glusterd-snapshot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xlators/mgmt') diff --git a/xlators/mgmt/glusterd/src/glusterd-snapshot.c b/xlators/mgmt/glusterd/src/glusterd-snapshot.c index c88444098c7..278d4d970df 100644 --- a/xlators/mgmt/glusterd/src/glusterd-snapshot.c +++ b/xlators/mgmt/glusterd/src/glusterd-snapshot.c @@ -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; } -- cgit