diff options
-rw-r--r-- | lib/dirname.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dirname.c b/lib/dirname.c index 7826d8edb..94f8c8936 100644 --- a/lib/dirname.c +++ b/lib/dirname.c @@ -113,7 +113,7 @@ dir_name_r (char const *path, char const **result) canonicalized "d:/path", leave alone the root case "d:/". */ char const *lim = path + FILESYSTEM_PREFIX_LEN (path); - while (slash > lim && ISSLASH (*slash)) + while (lim < slash && ISSLASH (*slash)) --slash; length = slash - path + 1; |