From 9e48540c59ad7be335edafb1ce57d8f16ddf1f3e Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Sun, 11 May 2003 10:24:35 +0000 Subject: [PATCH] Updated binkp name translate --- mbcico/binkp.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/mbcico/binkp.c b/mbcico/binkp.c index 6c685c8a..c36f18f1 100644 --- a/mbcico/binkp.c +++ b/mbcico/binkp.c @@ -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';