From 425094171007944fcfa37311dfae4be010e7c6a1 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Wed, 4 Feb 2004 03:01:32 +0000 Subject: [PATCH] Fixed a dropped '-'. --- util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util.c b/util.c index d0d1c2b1..13ab38e3 100644 --- a/util.c +++ b/util.c @@ -734,7 +734,7 @@ void sanitize_path(char *p, char *reldir) while (1) { /* copy one component through next slash */ *sanp++ = *p++; - if (*p == '\0' || p[1] == '/') { + if (*p == '\0' || p[-1] == '/') { while (*p == '/') { /* skip multiple slashes */ p++; -- 2.34.1