diff options
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, '/'); |