projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
.
[gnulib.git]
/
lib
/
dirname.c
diff --git
a/lib/dirname.c
b/lib/dirname.c
index
7826d8e
..
94f8c89
100644
(file)
--- 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;