diff options
author | William A. Rowe Jr <wrowe@apache.org> | 2001-07-26 16:37:56 +0000 |
---|---|---|
committer | William A. Rowe Jr <wrowe@apache.org> | 2001-07-26 16:37:56 +0000 |
commit | e8e1c5c23d99cdb166e43a31885b98375742c096 (patch) | |
tree | 716b864f083e60dd7c303a7112a956439754bded | |
parent | 09324dea0d46e9da8bf7836f567b98cb3e48936a (diff) | |
download | httpd-e8e1c5c23d99cdb166e43a31885b98375742c096.tar.gz |
That's it. There are no further emits for signedness or size conversion
in MSVC 5.x. Enough for 2.0.22, I'll revisit under -w4 (msvc's -wall)
and attack the other modules in 2.0.23-dev.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89731 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | modules/filters/mod_include.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/modules/filters/mod_include.c b/modules/filters/mod_include.c index a375712ad2..92d4a9bd0d 100644 --- a/modules/filters/mod_include.c +++ b/modules/filters/mod_include.c @@ -165,7 +165,7 @@ static apr_bucket *find_start_sequence(apr_bucket *dptr, include_ctx_t *ctx, break; } c = buf; - while (c - buf != len) { + while (c < buf + len) { if (ctx->bytes_parsed >= BYTE_COUNT_THRESHOLD) { apr_bucket *start_bucket; @@ -268,7 +268,7 @@ static apr_bucket *find_end_sequence(apr_bucket *dptr, include_ctx_t *ctx, apr_b else { c = buf; } - while (c - buf != len) { + while (c < buf + len) { if (ctx->bytes_parsed >= BYTE_COUNT_THRESHOLD) { return dptr; } @@ -366,10 +366,11 @@ static apr_bucket *find_end_sequence(apr_bucket *dptr, include_ctx_t *ctx, apr_b static apr_status_t get_combined_directive (include_ctx_t *ctx, request_rec *r, apr_bucket_brigade *bb, - char *tmp_buf, int tmp_buf_size) + char *tmp_buf, + apr_size_t tmp_buf_size) { - int done = 0; - apr_bucket *dptr; + int done = 0; + apr_bucket *dptr; const char *tmp_from; apr_size_t tmp_from_len; @@ -414,7 +415,7 @@ static apr_status_t get_combined_directive (include_ctx_t *ctx, } } } while ((!done) && - ((ctx->curr_tag_pos - ctx->combined_tag) < ctx->tag_length)); + (ctx->curr_tag_pos < ctx->combined_tag + ctx->tag_length)); ctx->combined_tag[ctx->tag_length] = '\0'; ctx->curr_tag_pos = ctx->combined_tag; |