Commit 8b9e46f8 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Cast to intmax_t for printf

parent 23ab89b7
...@@ -134,7 +134,7 @@ ved_sendchunk(const struct sess *sp, const void *cb, ssize_t cl, ...@@ -134,7 +134,7 @@ ved_sendchunk(const struct sess *sp, const void *cb, ssize_t cl,
assert(l > 0); assert(l > 0);
if (sp->wrk->res_mode & RES_CHUNKED) { if (sp->wrk->res_mode & RES_CHUNKED) {
if (cb == NULL) { if (cb == NULL) {
bprintf(chunk, "%jx\r\n", l); bprintf(chunk, "%jx\r\n", (intmax_t)l);
(void)WRW_Write(sp->wrk, chunk, -1); (void)WRW_Write(sp->wrk, chunk, -1);
} else } else
(void)WRW_Write(sp->wrk, cb, cl); (void)WRW_Write(sp->wrk, cb, cl);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment