Fix: Offset error in Disable Air mode (#3)

This commit is contained in:
Yi 2021-05-28 13:12:36 +08:00 committed by GitHub
parent b5bee91fa0
commit e452064f0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -328,7 +328,7 @@ void InputReceive(SOCKET sHost, char *memory)
}
else if(real_len >= 3 + 4 + 32 && buffer[1] == 'I' && buffer[2] == 'P' && buffer[3] == 'T') /// without air block
{
memcpy(memory, buffer + 4, 32);
memcpy(memory + 6, buffer + 4 + 4, 32);
if(real_len > 3 + 4 + 32)
{
memcpy(memory + 6 + 32 + 96, buffer + 4 + 4 + 32, real_len - (3 + 32 + 4));