- Null terminate bytes if passed to Utf8String
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using System.Text;
|
||||
using Dalamud.Memory;
|
||||
using FFXIVClientStructs.FFXIV.Client.System.String;
|
||||
using FFXIVClientStructs.FFXIV.Client.UI;
|
||||
|
||||
@@ -8,7 +9,7 @@ public unsafe class ChatBox
|
||||
{
|
||||
public static void SendMessageUnsafe(byte[] message)
|
||||
{
|
||||
var mes = Utf8String.FromSequence(message);
|
||||
var mes = Utf8String.FromSequence(message.NullTerminate());
|
||||
UIModule.Instance()->ProcessChatBoxEntry(mes);
|
||||
mes->Dtor(true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user