summaryrefslogtreecommitdiff
path: root/lib/dirname.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-12-07 14:11:52 +0000
committerJim Meyering <jim@meyering.net>2000-12-07 14:11:52 +0000
commit04f549820f22a4671ff495a5215c82610a6c156e (patch)
tree0311ea713f357599ef975aa5cb07dff858e0453c /lib/dirname.c
parentded8b14afb11c3b8d77619a56a45db5253d96217 (diff)
downloadcoreutils-04f549820f22a4671ff495a5215c82610a6c156e.tar.xz
convert a > expression to the equivalent < one
Diffstat (limited to 'lib/dirname.c')
-rw-r--r--lib/dirname.c2
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;