mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-06 00:00:47 -04:00
fast: Use correct printf specifier to print content length
This commit is contained in:
parent
12e64e5cf4
commit
e6e4113e9f
@ -25,6 +25,7 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
#include <inttypes.h>
|
||||||
|
|
||||||
#include <ClearSilver/ClearSilver.h>
|
#include <ClearSilver/ClearSilver.h>
|
||||||
|
|
||||||
@ -303,7 +304,7 @@ METHOD(fast_request_t, sendfile, bool,
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
/* FCGX does not like large integers, print to a buffer using libc */
|
/* 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);
|
FCGX_FPrintF(this->req.out, "Content-Length: %s\n", buf);
|
||||||
if (mime)
|
if (mime)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user