aboutsummaryrefslogtreecommitdiff
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 b4dd0ccc3..004864a18 100644
--- a/utility.c
+++ b/utility.c
@@ -482,6 +482,10 @@ extern void createPath (const char *name, int mode)
482 char buf[NAME_MAX]; 482 char buf[NAME_MAX];
483 483
484 strcpy (buf, name); 484 strcpy (buf, name);
485 if (buf[strlen(buf)]!='/') {
486 buf[strlen(buf)] = '/';
487 buf[strlen(buf)+1] = '\0';
488 }
485 489
486 cp = strchr (buf, '/'); 490 cp = strchr (buf, '/');
487 491