Using size_t for the field width type of the "%*s" specifier.

This commit is contained in:
Sergey Kandaurov
2018-01-24 15:16:32 +03:00
parent 477e8177b7
commit 67c64a99fb
13 changed files with 39 additions and 28 deletions

View File

@@ -712,8 +712,9 @@ nxt_http_parse_test_request_line(nxt_http_request_parse_t *rp,
if (nxt_memcmp(rp->version.str, test->version, 8) != 0) {
nxt_log_alert(log, "http parse test case failed:\n"
" - request:\n\"%V\"\n"
" - version: \"%*s\" (expected: \"%*s\")",
request, 8, rp->version.str, 8, test->version);
" - version: \"%*s\" (expected: \"%*s\")", request,
(size_t) 8, rp->version.str,
(size_t) 8, test->version);
return NXT_ERROR;
}