]> granicus.if.org Git - apache/commitdiff
Stop the while loop from incrementing twice per iteration before checking for
authorBradley Nicholes <bnicholes@apache.org>
Fri, 29 Mar 2002 00:39:56 +0000 (00:39 +0000)
committerBradley Nicholes <bnicholes@apache.org>
Fri, 29 Mar 2002 00:39:56 +0000 (00:39 +0000)
the NULL terminator.  This was causing the while loop to walk off the end of any
string with an odd number of characters.

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

modules/filters/mod_include.c

index 2e90e18ade05dc4355e388e8fef1498664a5f94e..778e7db33fcd2eed7b8202c0b1d5b35256b9ccf3 100644 (file)
@@ -1179,7 +1179,7 @@ static int is_only_below(const char *path)
             return 0;
 #endif
         path += dots;
-        while (*path && *(path++) != '/')
+        while (*path && *(path+1) != '/')
             ++path;
     }
     return 1;