diff options
Diffstat (limited to 'utility.c')
-rw-r--r-- | utility.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -482,6 +482,10 @@ extern void createPath (const char *name, int mode) char buf[NAME_MAX]; strcpy (buf, name); + if (buf[strlen(buf)]!='/') { + buf[strlen(buf)] = '/'; + buf[strlen(buf)+1] = '\0'; + } cp = strchr (buf, '/'); |