Bug fixes

This commit is contained in:
Eric Andersen
1999-11-22 07:41:00 +00:00
parent 5d44d1fda5
commit cb41c2e83b
7 changed files with 35 additions and 23 deletions

View File

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