aboutsummaryrefslogtreecommitdiff
path: root/lib/telnet.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/telnet.c')
-rw-r--r--lib/telnet.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/telnet.c b/lib/telnet.c
index e8fa874ac..9c20cc278 100644
--- a/lib/telnet.c
+++ b/lib/telnet.c
@@ -713,8 +713,8 @@ void telrcv(struct UrlData *data,
{
break; /* Ignore \0 after CR */
}
-
- data->fwrite((char *)&c, 1, 1, data->out);
+
+ client_write(data, CLIENTWRITE_BODY, (char *)&c, 1);
continue;
case TS_DATA:
@@ -728,7 +728,7 @@ void telrcv(struct UrlData *data,
telrcv_state = TS_CR;
}
- data->fwrite((char *)&c, 1, 1, data->out);
+ client_write(data, CLIENTWRITE_BODY, (char *)&c, 1);
continue;
case TS_IAC:
@@ -752,8 +752,8 @@ void telrcv(struct UrlData *data,
telrcv_state = TS_SB;
continue;
case IAC:
- data->fwrite((char *)&c, 1, 1, data->out);
- break;
+ client_write(data, CLIENTWRITE_BODY, (char *)&c, 1);
+ break;
case DM:
case NOP:
case GA: