Updated binkp name translate

This commit is contained in:
Michiel Broek 2003-05-11 10:24:35 +00:00
parent 21cf1c3c60
commit 9e48540c59

View File

@ -217,10 +217,13 @@ char *unix2binkd(char *fn)
while (*p) {
if (strspn(p, (char *)BNKCHARS)) {
*q++ = *p; *q = '\0';
*q++ = *p;
*q = '\0';
} else {
sprintf(q, "\\%2x", *p);
sprintf(q, "\\%2x", p[0]);
}
while (*q)
q++;
p++;
}
*q = '\0';