modified bts2str to also escape double quotes

This commit is contained in:
ceriel
1988-10-05 16:19:42 +00:00
parent 5d6bd5f65f
commit 9d5b1173f8
2 changed files with 2 additions and 1 deletions

View File

@@ -19,7 +19,7 @@ bts2str(b, n, s)
while (n-- > 0) {
if (is_print(*f)) {
if (*f == '\\') *t++ = *f;
if (*f == '\\' || *f == '"') *t++ = '\\';
*t++ = *f++;
} else {
*t++ = '\\';