aboutsummaryrefslogtreecommitdiff
path: root/lib/dirtree.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/dirtree.c')
-rw-r--r--lib/dirtree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/dirtree.c b/lib/dirtree.c
index 0e2a385c..aa3ab76b 100644
--- a/lib/dirtree.c
+++ b/lib/dirtree.c
@@ -59,9 +59,9 @@ char *dirtree_path(struct dirtree *node, int *plen)
len = (plen ? *plen : 0)+strlen(node->name)+1;
path = dirtree_path(node->parent, &len);
- if (len) path[len++]='/';
+ if (len) path[len++]='/';
len = (stpcpy(path+len, node->name) - path);
- if (plen) *plen = len;
+ if (plen) *plen = len;
return path;
}