From c7ac4997edfa2e37581da3dced27053c75d80d72 Mon Sep 17 00:00:00 2001 From: kamyker Date: Wed, 5 Aug 2020 01:17:59 +0200 Subject: [PATCH] Lobby.SendChatString() and OnChatMessage fix --- Facepunch.Steamworks/Structs/Lobby.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Facepunch.Steamworks/Structs/Lobby.cs b/Facepunch.Steamworks/Structs/Lobby.cs index 70ecdf3..b944499 100644 --- a/Facepunch.Steamworks/Structs/Lobby.cs +++ b/Facepunch.Steamworks/Structs/Lobby.cs @@ -133,7 +133,8 @@ public void SetMemberData( string key, string value ) /// public bool SendChatString( string message ) { - var data = System.Text.Encoding.UTF8.GetBytes( message ); + //adding null terminator as it's used in Helpers.MemoryToString + var data = System.Text.Encoding.UTF8.GetBytes( message + '\0' ); return SendChatBytes( data ); }