From 6d63e2e47ac83c5da4362e93009a395d1808e01f Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Sat, 19 Dec 2009 16:08:09 +0100 Subject: Fix printf format for size_t --- libwaitress/src/waitress.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libwaitress') diff --git a/libwaitress/src/waitress.c b/libwaitress/src/waitress.c index 545aa0a..8738a9e 100644 --- a/libwaitress/src/waitress.c +++ b/libwaitress/src/waitress.c @@ -372,7 +372,7 @@ WaitressReturn_t WaitressFetchCall (WaitressHandle_t *waith) { WRITE_RET (writeBuf, strlen (writeBuf)); if (waith->method == WAITRESS_METHOD_POST && waith->postData != NULL) { - snprintf (writeBuf, sizeof (writeBuf), "Content-Length: %u\r\n", + snprintf (writeBuf, sizeof (writeBuf), "Content-Length: %zu\r\n", strlen (waith->postData)); WRITE_RET (writeBuf, strlen (writeBuf)); } -- cgit v1.2.3