some fixes
This commit is contained in:
parent
7114bf47ec
commit
149a2abd07
|
@ -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';
|
||||
|
|
|
@ -165,7 +165,7 @@ E.g., the row of 2 bytes
|
|||
.RE
|
||||
is turned into the string consisting of the following characters
|
||||
.RS
|
||||
\&'\e\e' '0' '0' '0' '\e\e' 'n' '\e0'
|
||||
\&'\e' '0' '0' '0' '\e' 'n' '\e0'
|
||||
.RE
|
||||
The latter string could be represented in C as "\e\e000\e\en".
|
||||
.PP
|
||||
|
|
Loading…
Reference in a new issue