summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd-snapshot.c
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-snapshot.c')
-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;
}