патч для сборки nginx-0.3.53 на amd64

Igor Sysoev is at rambler-co.ru
Sat Jul 8 11:04:42 MSD 2006



Игорь Сысоев
http://sysoev.ru
-------------- next part --------------
--- 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;
         }
 


More information about the nginx-ru mailing list