From: Bradley Nicholes Date: Fri, 29 Mar 2002 00:39:56 +0000 (+0000) Subject: Stop the while loop from incrementing twice per iteration before checking for X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=91c2758cad3970f3a43e3ce5b57b60be3865590b;p=apache Stop the while loop from incrementing twice per iteration before checking for 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 --- diff --git a/modules/filters/mod_include.c b/modules/filters/mod_include.c index 2e90e18ade..778e7db33f 100644 --- a/modules/filters/mod_include.c +++ b/modules/filters/mod_include.c @@ -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;