From e3dc26a81baa8c334f4613cea4a531f259681f21 Mon Sep 17 00:00:00 2001 From: Teero888 Date: Tue, 30 Jan 2024 22:28:55 +0100 Subject: [PATCH] fix msvc complaining --- src/game/client/components/menus_settings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/client/components/menus_settings.cpp b/src/game/client/components/menus_settings.cpp index 79d754576..535ef67fa 100644 --- a/src/game/client/components/menus_settings.cpp +++ b/src/game/client/components/menus_settings.cpp @@ -432,7 +432,7 @@ void CMenus::RandomSkin() } const size_t SkinNameSize = !m_Dummy ? sizeof(g_Config.m_ClPlayerSkin) : sizeof(g_Config.m_ClDummySkin); - char aRandomSkinName[SkinNameSize]; + char aRandomSkinName[24]; str_copy(aRandomSkinName, "default", SkinNameSize); if(!m_pClient->m_Skins.GetSkinsUnsafe().empty()) {