From 63291dd1972ed66cb4d98b396ea7abc9d0349c8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20B=C3=BChler?= Date: Mon, 16 Feb 2009 13:42:38 +0000 Subject: Fix wrong format strings (#1900, thx stepancheg) git-svn-id: svn+ssh://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2394 152afb58-edef-0310-8abb-c4023f1b3aa9 --- NEWS | 1 + src/request.c | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/NEWS b/NEWS index 4265c00a..0ea7184e 100644 --- a/NEWS +++ b/NEWS @@ -38,6 +38,7 @@ NEWS * Silenced the annoying "request timed out" warning, enable with the "debug.log-timeouts" option (fixes #1529) * Allow tabs in header values (fixes #1822) * Added Language conditional (fixes #1119); patch by petar + * Fix wrong format strings (#1900, thx stepancheg) - 1.4.20 - 2008-09-30 diff --git a/src/request.c b/src/request.c index 3e1de3d0..b586c064 100644 --- a/src/request.c +++ b/src/request.c @@ -1136,8 +1136,8 @@ int http_request_parse(server *srv, connection *con) { con->http_status = 413; con->keep_alive = 0; - log_error_write(srv, __FILE__, __LINE__, "sds", - "request-size too long:", con->request.content_length, "-> 413"); + log_error_write(srv, __FILE__, __LINE__, "sos", + "request-size too long:", (off_t) con->request.content_length, "-> 413"); return 0; } @@ -1151,8 +1151,8 @@ int http_request_parse(server *srv, connection *con) { con->http_status = 413; con->keep_alive = 0; - log_error_write(srv, __FILE__, __LINE__, "sds", - "request-size too long:", con->request.content_length, "-> 413"); + log_error_write(srv, __FILE__, __LINE__, "sos", + "request-size too long:", (off_t) con->request.content_length, "-> 413"); return 0; } -- cgit v1.2.1