From 67c64a99fb78f48c3deacc7d89e73de72522806b Mon Sep 17 00:00:00 2001 From: Sergey Kandaurov Date: Wed, 24 Jan 2018 15:16:32 +0300 Subject: Using size_t for the field width type of the "%*s" specifier. --- src/nxt_application.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/nxt_application.c') diff --git a/src/nxt_application.c b/src/nxt_application.c index 69f68616..462767f3 100644 --- a/src/nxt_application.c +++ b/src/nxt_application.c @@ -476,7 +476,8 @@ nxt_app_msg_write(nxt_task_t *task, nxt_app_wmsg_t *msg, u_char *c, size_t size) nxt_memcpy(dst, c, size); dst[size] = 0; - nxt_debug(task, "nxt_app_msg_write: %uz %*s", size, (int) size, c); + nxt_debug(task, "nxt_app_msg_write: %uz %*s", size, size, c); + } else { dst_length = 1; @@ -598,8 +599,9 @@ nxt_app_msg_read_str(nxt_task_t *task, nxt_app_rmsg_t *msg, nxt_str_t *str) buf->mem.pos += length; - nxt_debug(task, "nxt_read_str: %d %*s", (int) length - 1, - (int) length - 1, str->start); + nxt_debug(task, "nxt_read_str: %uz %*s", length - 1, + length - 1, str->start); + } else { str->start = NULL; str->length = 0; -- cgit