From e6e4113e9fbf01821308588d78dcce4facb88e95 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Tue, 7 May 2019 14:48:19 +0200 Subject: [PATCH] fast: Use correct printf specifier to print content length --- src/libfast/fast_request.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libfast/fast_request.c b/src/libfast/fast_request.c index 0543215cb..5f6e39281 100644 --- a/src/libfast/fast_request.c +++ b/src/libfast/fast_request.c @@ -25,6 +25,7 @@ #include #include #include +#include #include @@ -303,7 +304,7 @@ METHOD(fast_request_t, sendfile, bool, return FALSE; } /* FCGX does not like large integers, print to a buffer using libc */ - snprintf(buf, sizeof(buf), "%lld", (int64_t)data->len); + snprintf(buf, sizeof(buf), "%"PRId64, (int64_t)data->len); FCGX_FPrintF(this->req.out, "Content-Length: %s\n", buf); if (mime) {