projects
/
mmh
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8041c8a
)
Added comment
author
markus schnalke
<meillo@marmaro.de>
Sun, 20 Nov 2011 20:14:29 +0000
(21:14 +0100)
committer
markus schnalke
<meillo@marmaro.de>
Sun, 20 Nov 2011 20:14:29 +0000
(21:14 +0100)
sbr/utils.c
patch
|
blob
|
history
diff --git
a/sbr/utils.c
b/sbr/utils.c
index
99c5510
..
55be77c
100644
(file)
--- 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;
}