From: markus schnalke Date: Sun, 20 Nov 2011 20:14:29 +0000 (+0100) Subject: Added comment X-Git-Tag: mmh-thesis-end~470 X-Git-Url: http://git.marmaro.de/?a=commitdiff_plain;h=137b1ac9efd8d566e03708b74fe3f9d8d5c266f8;p=mmh Added comment --- diff --git a/sbr/utils.c b/sbr/utils.c index 99c5510..55be77c 100644 --- a/sbr/utils.c +++ b/sbr/utils.c @@ -78,8 +78,10 @@ pwd(void) return curwd; } - if ((cp = curwd + strlen(curwd) - 1) > curwd && *cp == '/') + if ((cp = curwd + strlen(curwd) - 1) > curwd && *cp == '/') { + /* strip trailing slash */ *cp = '\0'; + } return curwd; }