4 * Mangle a filename pointed to by src into a buffer pointed
5 * to by dst; ends on encountering any whitespace.
8 * This verifies that a filename is < FILENAME_MAX characters,
9 * doesn't contain whitespace, zero-pads the output buffer,
10 * and removes redundant slashes.
17 void generic_mangle_name(char *dst
, const char *src
)
20 int i
= FILENAME_MAX
-1;
22 while (not_whitespace(*src
)) {
39 if ((dst
[-1] == '/') && ((dst
- 1) == p
))