mirror of
https://github.com/ksherlock/dict.git
synced 2025-01-24 04:33:49 +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);
|
Int2Dec(buffer->port, message + length, 5, 0);
|
||||||
length += 5;
|
length += 5;
|
||||||
message[length] = 0;
|
message[length] = 0;
|
||||||
message[0] = length;
|
message[0] = length - 1;
|
||||||
buffer->displayPtr(message);
|
buffer->displayPtr(message);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -113,8 +113,8 @@ Word ConnectionPoll(Connection *buffer) {
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sr.srState ==
|
/* && state == kConnectionStateConnecting */
|
||||||
TCPSESTABLISHED) // && state == kConnectionStateConnecting)
|
if (sr.srState == TCPSESTABLISHED)
|
||||||
{
|
{
|
||||||
buffer->state = kConnectionStateConnected;
|
buffer->state = kConnectionStateConnected;
|
||||||
return 1;
|
return 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user