summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYaniv Kaul <ykaul@redhat.com>2018-08-16 14:18:31 +0300
committerAtin Mukherjee <amukherj@redhat.com>2018-09-06 05:45:28 +0000
commite6a826a97def94458d6e02101c5bbb2b13833374 (patch)
tree37c10b401c206e4c33d930735d41520242d5e24a
parent4bafcc97e812acc854dfc436ade35df0308d5a3e (diff)
xlators/mgmt/glusterd/src/glusterd-log-ops.c : reduce size or re-scope message variable
The the error and/or message variable was either: - Reduced in size - from 2048 bytes to 64 bytes, for example. or - Changed in scope - defined in a smaller scope. Compile-tested only! Change-Id: Ib8617db6c3646954c0225d12b904d668bf0f7046 updates: bz#1193929 Signed-off-by: Yaniv Kaul <ykaul@redhat.com>
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-log-ops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-log-ops.c b/xlators/mgmt/glusterd/src/glusterd-log-ops.c
index 575c104d1c6..0a811db9ebc 100644
--- a/xlators/mgmt/glusterd/src/glusterd-log-ops.c
+++ b/xlators/mgmt/glusterd/src/glusterd-log-ops.c
@@ -28,7 +28,7 @@ __glusterd_handle_log_rotate (rpcsvc_request_t *req)
dict_t *dict = NULL;
glusterd_op_t cli_op = GD_OP_LOG_ROTATE;
char *volname = NULL;
- char msg[2048] = {0,};
+ char msg[64] = {0,};
xlator_t *this = NULL;
GF_ASSERT (req);