summaryrefslogtreecommitdiff
path: root/utility.c
diff options
context:
space:
mode:
Diffstat (limited to 'utility.c')
-rw-r--r--utility.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/utility.c b/utility.c
index b4dd0cc..004864a 100644
--- a/utility.c
+++ b/utility.c
@@ -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, '/');