]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Legibility counts for something, so does eliminating bogus ssize_t
authorWilliam A. Rowe Jr <wrowe@apache.org>
Sat, 6 Oct 2001 04:41:37 +0000 (04:41 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Sat, 6 Oct 2001 04:41:37 +0000 (04:41 +0000)
  products from pointer subtraction ;)

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

modules/mappers/mod_vhost_alias.c

index 09994fb7a4aa9353a5c8485b978eda24eebfb43e..12ad0ddcd67b92cd99c9bf1ec357b935ee992272 100644 (file)
@@ -433,7 +433,7 @@ static int mva_translate(request_rec *r)
     cgi = NULL;
     if (conf->cgi_root) {
        cgi = strstr(r->uri, "cgi-bin/");
-       if (cgi && cgi - r->uri != strspn(r->uri, "/")) {
+       if (cgi && (cgi != r->uri + strspn(r->uri, "/"))) {
            cgi = NULL;
        }
     }