diff options
author | Eric Andersen | 1999-11-22 07:41:00 +0000 |
---|---|---|
committer | Eric Andersen | 1999-11-22 07:41:00 +0000 |
commit | cb41c2e83b9e9997b9737d7061d53f7c11a463a8 (patch) | |
tree | 9fed0b9a9a44389618c13d8094b26224355d3108 /utility.c | |
parent | 5d44d1fda593248c154ec68b38ce946a69f9b0fc (diff) | |
download | busybox-cb41c2e83b9e9997b9737d7061d53f7c11a463a8.zip busybox-cb41c2e83b9e9997b9737d7061d53f7c11a463a8.tar.gz |
Bug fixes
Diffstat (limited to 'utility.c')
-rw-r--r-- | utility.c | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -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, '/'); |