aboutsummaryrefslogtreecommitdiff
path: root/utility.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>1999-11-22 07:41:00 +0000
committerEric Andersen <andersen@codepoet.org>1999-11-22 07:41:00 +0000
commitcb41c2e83b9e9997b9737d7061d53f7c11a463a8 (patch)
tree9fed0b9a9a44389618c13d8094b26224355d3108 /utility.c
parent5d44d1fda593248c154ec68b38ce946a69f9b0fc (diff)
downloadbusybox-cb41c2e83b9e9997b9737d7061d53f7c11a463a8.tar.gz
Bug fixes
Diffstat (limited to 'utility.c')
-rw-r--r--utility.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/utility.c b/utility.c
index 004864a18..011c0cf41 100644
--- a/utility.c
+++ b/utility.c
@@ -481,14 +481,8 @@ extern void createPath (const char *name, int mode)
char *cpOld;
char buf[NAME_MAX];
- strcpy (buf, name);
- if (buf[strlen(buf)]!='/') {
- buf[strlen(buf)] = '/';
- buf[strlen(buf)+1] = '\0';
- }
-
+ strcpy( buf, name);
cp = strchr (buf, '/');
-
while (cp) {
cpOld = cp;
cp = strchr (cp + 1, '/');