Fix multiply slash problem

This commit is contained in:
Andrey A. Chernov 1994-05-20 00:34:30 +00:00
parent 382bb6cf5d
commit 8ada725ee1

View File

@ -38,7 +38,10 @@ fsysdep_make_dirs (zfile, fpublic)
ubuffree (zcopy);
return FALSE;
}
*z = '/';
*z = '/'; /* replace '/' in its place */
/* now skips over multiple '/' in name */
while ( (*(z + 1)) && (*(z + 1)) == '/')
z++;
}
}