summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Bühler <stbuehler@web.de>2010-07-04 07:45:17 +0000
committerStefan Bühler <stbuehler@web.de>2010-07-04 07:45:17 +0000
commit63233d3c47d4cd37be7e07c98cd5f778c782e652 (patch)
treecc59eeff571ce827846e49c90c89903a3096233e
parentbd4c4aaab2237ab205497dd2d8c4a02969936579 (diff)
downloadlighttpd-git-63233d3c47d4cd37be7e07c98cd5f778c782e652.tar.gz
Fix etag formatting
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2730 152afb58-edef-0310-8abb-c4023f1b3aa9
-rw-r--r--NEWS1
-rw-r--r--src/etag.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 6c6e222c..a8a13c71 100644
--- a/NEWS
+++ b/NEWS
@@ -14,6 +14,7 @@ NEWS
* Print double quotes properly when dumping config file (fixes #1806)
* Include IP addresses on error log on password failures (fixes #2191)
* Fix stalls while reading from ssl sockets (fixes #2197)
+ * Fix etag formatting on boxes with 32-bit longs
- 1.4.26 - 2010-02-07
* Fix request parser to handle packets with splitted \r\n\r\n (fixes #2105)
diff --git a/src/etag.c b/src/etag.c
index 9ff585fe..e7e9e3fe 100644
--- a/src/etag.c
+++ b/src/etag.c
@@ -44,7 +44,7 @@ int etag_mutate(buffer *mut, buffer *etag) {
buffer_reset(mut);
buffer_copy_string_len(mut, CONST_STR_LEN("\""));
- buffer_append_long(mut, h);
+ buffer_append_off_t(mut, h);
buffer_append_string_len(mut, CONST_STR_LEN("\""));
return 0;