From: Felix Fietkau Date: Mon, 7 Apr 2014 22:42:04 +0000 (+0200) Subject: fix handling of / as cgi prefix X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a0c33bdbc4873210598acdccb292ff77fb6bf624;p=oweals%2Fuhttpd.git fix handling of / as cgi prefix Signed-off-by: Felix Fietkau --- diff --git a/main.c b/main.c index 38d023f..e89a99a 100644 --- a/main.c +++ b/main.c @@ -201,7 +201,7 @@ static void fixup_prefix(char *str) len = strlen(str) - 1; - while (len > 0 && str[len] == '/') + while (len >= 0 && str[len] == '/') len--; str[len + 1] = 0;