From: Jim Meyering Date: Thu, 7 Dec 2000 14:11:52 +0000 (+0000) Subject: convert a > expression to the equivalent < one X-Git-Tag: TEXTUTILS-2_0_10~43 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=04f549820f22a4671ff495a5215c82610a6c156e;p=thirdparty%2Fcoreutils.git convert a > expression to the equivalent < one --- diff --git a/lib/dirname.c b/lib/dirname.c index 7826d8edbf..94f8c8936e 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;