From 86e3cd262b0ea64e1521d7727e181ae74950eab5 Mon Sep 17 00:00:00 2001 From: lsm Date: Fri, 10 Feb 2012 22:01:42 +0000 Subject: [PATCH] Using IS_DIRSEP_CHAR() in remove_double_dots_and_double_slashes() --- mongoose.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mongoose.c b/mongoose.c index 17ef4174..99116eeb 100644 --- a/mongoose.c +++ b/mongoose.c @@ -1696,9 +1696,9 @@ static void remove_double_dots_and_double_slashes(char *s) { while (*s != '\0') { *p++ = *s++; - if (s[-1] == '/' || s[-1] == DIRSEP) { + if (IS_DIRSEP_CHAR(s[-1])) { // Skip all following slashes and backslashes - while (*s == '/' || *s == DIRSEP) { + while (IS_DIRSEP_CHAR(s[0])) { s++; }