some fixes

This commit is contained in:
ceriel
1987-09-29 16:07:10 +00:00
parent 1d6e0cecb2
commit 539de05556
2 changed files with 4 additions and 3 deletions

View File

@@ -18,9 +18,10 @@ bts2str(b, n, s)
register char *f = b, *t = s;
while (n-- > 0) {
if (is_print(*f))
if (is_print(*f)) {
if (*f == '\\') *t++ = *f;
*t++ = *f++;
else {
} else {
*t++ = '\\';
*t++ = ((*f >> 6) & 03) + '0';
*t++ = ((*f >> 3) & 07) + '0';