- Null terminate bytes if passed to Utf8String

This commit is contained in:
Infi
2026-04-19 21:18:47 +02:00
parent 69c890facb
commit 93faf1b5bd
3 changed files with 6 additions and 5 deletions
+2 -1
View File
@@ -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);
}