Fix uninitialized channel and packet flags in split UTF-8 packets
This commit is contained in:
parent
da7967632a
commit
d828868bc8
1 changed files with 2 additions and 1 deletions
|
|
@ -594,8 +594,9 @@ static void inputSendThreadProc(void* context) {
|
|||
break;
|
||||
}
|
||||
|
||||
// Use the original packet as a template and fixup to send one code point at a time
|
||||
splitPacket = *holder;
|
||||
splitPacket.packet.unicode.header.size = BE32(sizeof(uint32_t) + codePointLength);
|
||||
splitPacket.packet.unicode.header.magic = LE32(UTF8_TEXT_EVENT_MAGIC);
|
||||
memcpy(splitPacket.packet.unicode.text, &holder->packet.unicode.text[i], codePointLength);
|
||||
|
||||
// Encrypt and send the split packet
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue