summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
b644665)
Otherwise end up with a null string which is not permitted (RFC 1813, 3.2;
the code checks for it right after the now fixed nullification of "/").
Signed-off-by: Arne Redlich <arne.redlich@googlemail.com>
/* /$ -> \0 */
len = strlen(path);
/* /$ -> \0 */
len = strlen(path);
if (path[len - 1] == '/') {
path[len - 1] = '\0';
len--;
if (path[len - 1] == '/') {
path[len - 1] = '\0';
len--;