From dcfaa86af1a62c48c970ed466d57e17559b279c7 Mon Sep 17 00:00:00 2001 From: Jeff Campbell <1663648+jeffcampbellmakesgames@users.noreply.github.com> Date: Sat, 12 Jul 2025 02:53:49 -0400 Subject: [PATCH] Fixed truncated session ticket array (#828) * Modified GetAuthSessionTicket to create array of max size 2560 based on correlating API in `isteamuser.h`. This fixes a bug where the session ticket retrieved is truncated in comparison with SteamWorks for the same API. Co-authored-by: Jeff Campbell --- Facepunch.Steamworks/SteamUser.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Facepunch.Steamworks/SteamUser.cs b/Facepunch.Steamworks/SteamUser.cs index 573959d..522a6cc 100644 --- a/Facepunch.Steamworks/SteamUser.cs +++ b/Facepunch.Steamworks/SteamUser.cs @@ -314,7 +314,7 @@ namespace Steamworks /// public static unsafe AuthTicket GetAuthSessionTicket( NetIdentity identity ) { - var data = Helpers.TakeBuffer( 1024 ); + var data = Helpers.TakeBuffer( 2560 ); fixed ( byte* b = data ) {