summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'www-servers/nginx/files/nginx-0.3.53-amd64_fixes.patch')
-rw-r--r--www-servers/nginx/files/nginx-0.3.53-amd64_fixes.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/www-servers/nginx/files/nginx-0.3.53-amd64_fixes.patch b/www-servers/nginx/files/nginx-0.3.53-amd64_fixes.patch
new file mode 100644
index 000000000000..73209b281840
--- /dev/null
+++ b/www-servers/nginx/files/nginx-0.3.53-amd64_fixes.patch
@@ -0,0 +1,29 @@
+--- src/http/ngx_http_request_body.c Fri Jul 7 17:34:30 2006
++++ src/http/ngx_http_request_body.c Sat Jul 8 09:37:55 2006
+@@ -92,7 +92,7 @@
+ rb->bufs->buf = b;
+ rb->bufs->next = NULL;
+
+- if (preread >= r->headers_in.content_length_n) {
++ if ((off_t) preread >= r->headers_in.content_length_n) {
+
+ /* the whole request body was pre-read */
+
+@@ -120,7 +120,7 @@
+
+ rb->rest = r->headers_in.content_length_n - preread;
+
+- if (rb->rest <= (size_t) (b->end - b->last)) {
++ if (rb->rest <= (off_t) (b->end - b->last)) {
+
+ /* the whole request body may be placed in r->header_in */
+
+@@ -242,7 +242,7 @@
+
+ size = rb->buf->end - rb->buf->last;
+
+- if (size > rb->rest) {
++ if ((off_t) size > rb->rest) {
+ size = (size_t) rb->rest;
+ }
+