Attempt to make outgoing telnet work

This commit is contained in:
Michiel Broek
2003-11-23 22:47:26 +00:00
parent bb1105a61f
commit 4c919784a1
9 changed files with 399 additions and 291 deletions

View File

@@ -497,7 +497,7 @@ char *printable(char *s, int l)
case '\n': *p++='\\'; *p++='n'; break;
case '\t': *p++='\\'; *p++='t'; break;
case '\b': *p++='\\'; *p++='b'; break;
default: sprintf(p,"\\%02x",*s); p+=3; break;
default: sprintf(p,"\\%02x", (*s & 0xff)); p+=3; break;
}
s++;
}