mirror of
https://github.com/ksherlock/dict.git
synced 2025-01-08 08:29:33 +00:00
fix length calculation
This commit is contained in:
parent
3c0a26e412
commit
9e24014b62
@ -30,7 +30,7 @@ static Word LoginAndOpen(Connection *buffer) {
|
||||
Int2Dec(buffer->port, message + length, 5, 0);
|
||||
length += 5;
|
||||
message[length] = 0;
|
||||
message[0] = length;
|
||||
message[0] = length - 1;
|
||||
buffer->displayPtr(message);
|
||||
}
|
||||
|
||||
@ -113,8 +113,8 @@ Word ConnectionPoll(Connection *buffer) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (sr.srState ==
|
||||
TCPSESTABLISHED) // && state == kConnectionStateConnecting)
|
||||
/* && state == kConnectionStateConnecting */
|
||||
if (sr.srState == TCPSESTABLISHED)
|
||||
{
|
||||
buffer->state = kConnectionStateConnected;
|
||||
return 1;
|
||||
|
Loading…
Reference in New Issue
Block a user