httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yann Ylavic <ylavic....@gmail.com>
Subject Re: svn commit: r1484852 - in /httpd/httpd/trunk: CHANGES modules/http/http_filters.c
Date Wed, 22 May 2013 11:39:55 GMT
Sorry, "linelimit" is an int and compared to an int.
Only "i" should be a size_t...

Index: modules/http/http_filters.c
===================================================================
--- modules/http/http_filters.c    (revision 1485126)
+++ modules/http/http_filters.c    (working copy)
@@ -91,7 +91,7 @@
 static apr_status_t parse_chunk_size(http_ctx_t *ctx, const char *buffer,
         apr_size_t len, int linelimit)
 {
-    int i = 0;
+    apr_size_t i = 0;

     while (i < len) {
         char c = buffer[i];

Regards,
Yann.

Mime
View raw message