aboutsummaryrefslogtreecommitdiff
path: root/lib/dirtree.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2012-05-09 06:11:23 -0500
committerRob Landley <rob@landley.net>2012-05-09 06:11:23 -0500
commit4d0f02f30b8ecf207cfb812af83f6ab4e26f5497 (patch)
tree9bdb3e4c631d58fb1888b744da369700ccd638d3 /lib/dirtree.c
parentd6f7e788ac34c05f7be31a8eb751b7595d48ec0a (diff)
downloadtoybox-4d0f02f30b8ecf207cfb812af83f6ab4e26f5497.tar.gz
Whitespace (tabs vs spaces) cleanup.
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;
}