summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Bühler <stbuehler@web.de>2009-02-16 13:42:38 +0000
committerStefan Bühler <stbuehler@web.de>2009-02-16 13:42:38 +0000
commit63291dd1972ed66cb4d98b396ea7abc9d0349c8f (patch)
tree6917009679d493852f86c49e18f7aa978bd4195c
parentadf88ccab7f7c11828166c632c907f7fbea38e0e (diff)
downloadlighttpd-git-63291dd1972ed66cb4d98b396ea7abc9d0349c8f.tar.gz
Fix wrong format strings (#1900, thx stepancheg)lighttpd-1.4.21
git-svn-id: svn+ssh://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2394 152afb58-edef-0310-8abb-c4023f1b3aa9
-rw-r--r--NEWS1
-rw-r--r--src/request.c8
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;
}