diff options
Diffstat (limited to 'xlators')
-rw-r--r-- | xlators/features/locks/src/common.c | 2 | ||||
-rw-r--r-- | xlators/protocol/server/src/server-protocol.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/xlators/features/locks/src/common.c b/xlators/features/locks/src/common.c index 5c83f366e..7cbf45958 100644 --- a/xlators/features/locks/src/common.c +++ b/xlators/features/locks/src/common.c @@ -264,7 +264,7 @@ pl_print_verdict (char *str, int size, int op_ret, int op_errno) } } - snprintf (str, size, verdict); + snprintf (str, size, "%s", verdict); } diff --git a/xlators/protocol/server/src/server-protocol.c b/xlators/protocol/server/src/server-protocol.c index 9dc6e1184..1f2cb7d06 100644 --- a/xlators/protocol/server/src/server-protocol.c +++ b/xlators/protocol/server/src/server-protocol.c @@ -234,7 +234,7 @@ server_print_reply (call_frame_t *frame, int op_ret, int op_errno) fdstr[0] = '\0'; if (state->fd) - snprintf (fdstr, 128, " fd=%p", state->fd); + snprintf (fdstr, 32, " fd=%p", state->fd); gf_log (this->name, GF_LOG_NORMAL, "%s%s => (%d, %d)%s", |