wasn't sending IAC SE..oops

This commit is contained in:
Kelvin Sherlock 2013-08-21 00:25:30 -04:00
parent f3b42ae2c8
commit cc7c10c1ee
1 changed files with 2 additions and 3 deletions

View File

@ -203,7 +203,7 @@ static int cnt;
IAC, SE IAC, SE
}; };
TCPIPWriteTCP(ipid, msg, TCPIPWriteTCP(ipid, msg,
sizeof(msg) -1, true, false); sizeof(msg), true, false);
} }
else if (buffer[0] == TELOPT_NAWS else if (buffer[0] == TELOPT_NAWS
&& buffer[1] == TELQUAL_SEND) && buffer[1] == TELQUAL_SEND)
@ -215,8 +215,7 @@ static int cnt;
IAC, SE IAC, SE
}; };
TCPIPWriteTCP(ipid, msg, TCPIPWriteTCP(ipid, msg,
sizeof(msg) - 1, true, false); sizeof(msg), true, false);
} }
cnt = 0; cnt = 0;