From 137b1ac9efd8d566e03708b74fe3f9d8d5c266f8 Mon Sep 17 00:00:00 2001 From: markus schnalke Date: Sun, 20 Nov 2011 21:14:29 +0100 Subject: [PATCH] Added comment --- sbr/utils.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } -- 1.7.10.4