]> granicus.if.org Git - apache/commitdiff
pointer subtraction yeilds a ssize_t, fix emit by notating the
authorWilliam A. Rowe Jr <wrowe@apache.org>
Mon, 1 Apr 2002 02:41:08 +0000 (02:41 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Mon, 1 Apr 2002 02:41:08 +0000 (02:41 +0000)
  expression in terms of addition

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94351 13f79535-47bb-0310-9956-ffa450edef68

modules/filters/mod_include.c

index 9eb279553d46baf9b0705493bca137a3b0cfc6c8..5004c8fec560efcf4665e7e2e1b39c0a5c2065da 100644 (file)
@@ -866,7 +866,7 @@ static void ap_ssi_get_tag_and_value(include_ctx_t *ctx, char **tag,
     char  term = '\0';
 
     *tag_val = NULL;
-    if (ctx->curr_tag_pos - ctx->combined_tag > ctx->tag_length) {
+    if (ctx->curr_tag_pos > ctx->combined_tag + ctx->tag_length) {
         *tag = NULL;
         return;
     }