From: Jim Meyering Date: Thu, 7 Dec 2000 14:13:13 +0000 (+0000) Subject: (ISSLASH): Define. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=572993f926994346e843556b653b619b61a101c2;p=pspp (ISSLASH): Define. (strip_trailing_slashes): Use ISSLASH rather than comparing against `/'. From Prashant TR. --- diff --git a/lib/stripslash.c b/lib/stripslash.c index f55c769128..20cdc48b5f 100644 --- a/lib/stripslash.c +++ b/lib/stripslash.c @@ -41,6 +41,6 @@ strip_trailing_slashes (char *path) int last; last = strlen (path) - 1; - while (0 < last && ISSLASH (path[last])) + while (last > 0 && ISSLASH (path[last])) path[last--] = '\0'; }