diff --git a/telnet/telnet.c b/telnet/telnet.c index c5b18c14..0f817bc8 100644 --- a/telnet/telnet.c +++ b/telnet/telnet.c @@ -860,7 +860,7 @@ suboption (void) name = gettermname (); len = strlen (name) + 4 + 2; - if ((len < NETROOM ()) && (len <= (int) sizeof (temp))) + if ((len < NETROOM ()) && (len < (int) sizeof (temp))) { snprintf ((char *) temp, sizeof (temp), "%c%c%c%c%s%c%c", IAC, SB, TELOPT_TTYPE, TELQUAL_IS,