* Strip trailing junk from command
*/
p = cmd + strlen(cmd) - 1;
- while ((p >= cmd) && (*p == '\n' || *p == '\r' || B_ISSPACE(*p))) {
+ while ((p >= cmd) && (*p == '\n' || *p == '\r' || *p == ' ')) {
*p-- = 0;
}
}
* Strip trailing slashes
*/
p = dir + strlen(dir) - 1;
- while (p >= dir && IsPathSeparator(*p))
+ while (p >= dir && IsPathSeparator(*p)) {
*p-- = 0;
+ }
}
/*