summaryrefslogtreecommitdiff
path: root/libexec/telnetd/slc.c
diff options
context:
space:
mode:
Diffstat (limited to 'libexec/telnetd/slc.c')
-rw-r--r--libexec/telnetd/slc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libexec/telnetd/slc.c b/libexec/telnetd/slc.c
index b3e953cb5c04..8a02c81a0f9a 100644
--- a/libexec/telnetd/slc.c
+++ b/libexec/telnetd/slc.c
@@ -204,7 +204,7 @@ end_slc(bufp)
(void) sprintf((char *)slcptr, "%c%c", IAC, SE);
slcptr += 2;
len = slcptr - slcbuf;
- writenet(slcbuf, len);
+ output_datalen(slcbuf, len);
netflush(); /* force it out immediately */
DIAG(TD_OPTIONS, printsub('>', slcbuf+2, len-2););
}