From 91c2758cad3970f3a43e3ce5b57b60be3865590b Mon Sep 17 00:00:00 2001 From: Bradley Nicholes Date: Fri, 29 Mar 2002 00:39:56 +0000 Subject: [PATCH] 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 --- modules/filters/mod_include.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.50.1