mirror of
https://github.com/LX3JL/xlxd.git
synced 2025-12-06 07:42:01 +01:00
Added missing 0x20 in DCS EncodeDisconnectPacket
As is, EncodeDisconnectPacket will fail IsValidDisconnectPacket check. The encoded packet is only has 18 bytes instead of 19 because it's missing a 0x20.
This commit is contained in:
parent
adec5c8d14
commit
c220fa2b61
|
|
@ -526,6 +526,7 @@ void CDcsProtocol::EncodeDisconnectPacket(CBuffer *Buffer, CClient *Client)
|
||||||
Buffer->Set((uint8 *)(const char *)Client->GetCallsign(), CALLSIGN_LEN-1);
|
Buffer->Set((uint8 *)(const char *)Client->GetCallsign(), CALLSIGN_LEN-1);
|
||||||
Buffer->Append((uint8)' ');
|
Buffer->Append((uint8)' ');
|
||||||
Buffer->Append((uint8)Client->GetModule());
|
Buffer->Append((uint8)Client->GetModule());
|
||||||
|
Buffer->Append((uint8)' ');
|
||||||
Buffer->Append((uint8)0x00);
|
Buffer->Append((uint8)0x00);
|
||||||
Buffer->Append((uint8 *)(const char *)GetReflectorCallsign(), CALLSIGN_LEN-1);
|
Buffer->Append((uint8 *)(const char *)GetReflectorCallsign(), CALLSIGN_LEN-1);
|
||||||
Buffer->Append((uint8)' ');
|
Buffer->Append((uint8)' ');
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue