Skip to content
Snippets Groups Projects
Commit bf9bb7d4 authored by Henrik (Grubba) Grubbström's avatar Henrik (Grubba) Grubbström
Browse files

Fixed typo, and minor cleanups.

Rev: lib/modules/Protocols.pmod/TELNET.pmod:1.8
parent 214bd23b
No related branches found
No related tags found
No related merge requests found
// //
// $Id: TELNET.pmod,v 1.7 1999/06/05 04:20:03 hubbe Exp $ // $Id: TELNET.pmod,v 1.8 1999/08/25 17:38:01 grubba Exp $
// //
// The TELNET protocol as described by RFC 764 and others. // The TELNET protocol as described by RFC 764 and others.
// //
...@@ -610,7 +610,7 @@ class protocol ...@@ -610,7 +610,7 @@ class protocol
break; break;
#if 0 #if 0
case "EL": // Erase Line case EL: // Erase Line
for (j=0; j < i; j++) { for (j=0; j < i; j++) {
a[j] = ""; a[j] = "";
} }
...@@ -726,7 +726,8 @@ class protocol ...@@ -726,7 +726,8 @@ class protocol
break; break;
} }
} else { } else {
a[i] = "\377"; // IAC IAC => IAC
a[i] = C(IAC);
i++; i++;
} }
} }
...@@ -835,7 +836,7 @@ class LineMode ...@@ -835,7 +836,7 @@ class LineMode
{ {
DWRITE(sprintf("Line callback... %O\n",data)); DWRITE(sprintf("Line callback... %O\n",data));
data=replace(data, data=replace(data,
({"\r\n","\r\n","\r","\r\0"}), ({"\r\n", "\n", "\r", "\r\0"}),
({"\r", "\r", "\r", "\r",})); ({"\r", "\r", "\r", "\r",}));
line_buffer+=data; line_buffer+=data;
string *tmp=line_buffer/"\r"; string *tmp=line_buffer/"\r";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment