From 0cc54720db8ed633f56fae0df73dee0cd8d6c54c Mon Sep 17 00:00:00 2001 From: terminx Date: Thu, 9 Aug 2018 16:07:14 +0000 Subject: [PATCH] Silence less stupid fucking warning git-svn-id: https://svn.eduke32.com/eduke32@6969 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/duke3d/src/menus.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/duke3d/src/menus.cpp b/source/duke3d/src/menus.cpp index bcb249f8a..bdf7af925 100644 --- a/source/duke3d/src/menus.cpp +++ b/source/duke3d/src/menus.cpp @@ -5435,7 +5435,7 @@ static int32_t Menu_RunInput_MouseReturn(void) static void Menu_Run_AbbreviateNameIntoBuffer(const char* name, int32_t entrylength) { int32_t len = Bstrlen(name); - Bstrncpy(tempbuf, name, len); + Bstrncpy(tempbuf, name, ARRAY_SIZE(tempbuf)); if (len > entrylength) { len = entrylength-3;