Updated binkp name translate
This commit is contained in:
parent
21cf1c3c60
commit
9e48540c59
@ -217,10 +217,13 @@ char *unix2binkd(char *fn)
|
|||||||
|
|
||||||
while (*p) {
|
while (*p) {
|
||||||
if (strspn(p, (char *)BNKCHARS)) {
|
if (strspn(p, (char *)BNKCHARS)) {
|
||||||
*q++ = *p; *q = '\0';
|
*q++ = *p;
|
||||||
|
*q = '\0';
|
||||||
} else {
|
} else {
|
||||||
sprintf(q, "\\%2x", *p);
|
sprintf(q, "\\%2x", p[0]);
|
||||||
}
|
}
|
||||||
|
while (*q)
|
||||||
|
q++;
|
||||||
p++;
|
p++;
|
||||||
}
|
}
|
||||||
*q = '\0';
|
*q = '\0';
|
||||||
|
Reference in New Issue
Block a user