# HG changeset patch # User Jim Meyering # Date 976198393 0 # Node ID ddd2884ccd2e2a5b6ffe8e5b36d883d5accb45ea # Parent c98368348dc3a29d45859d6c632436ec9ce6c5b8 (ISSLASH): Define. (strip_trailing_slashes): Use ISSLASH rather than comparing against `/'. From Prashant TR. diff --git a/lib/stripslash.c b/lib/stripslash.c --- a/lib/stripslash.c +++ b/lib/stripslash.c @@ -41,6 +41,6 @@ int last; last = strlen (path) - 1; - while (0 < last && ISSLASH (path[last])) + while (last > 0 && ISSLASH (path[last])) path[last--] = '\0'; }