summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorPranith Kumar K <pkarampu@redhat.com>2014-04-30 03:31:06 +0530
committerVijay Bellur <vbellur@redhat.com>2014-05-01 02:29:39 -0700
commit9934033030d3afa039c0686f77a4c00fad270131 (patch)
tree600969b5ac785885f9f4578ec0f03f0305901c82 /xlators
parent889359f8456d8d1799ec66bf0e5506732c7907b9 (diff)
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>
Diffstat (limited to 'xlators')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-snapshot.c2
1 files changed, 1 insertions, 1 deletions
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;
}