From 0fb15a3f35d01d5887deb73f7825ea3c7e42d44e Mon Sep 17 00:00:00 2001 From: Lactozilla Date: Sat, 25 Nov 2023 15:49:26 -0300 Subject: [PATCH] Use strlcpy here --- src/deh_soc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/deh_soc.c b/src/deh_soc.c index 646ec8744..07100e703 100644 --- a/src/deh_soc.c +++ b/src/deh_soc.c @@ -1234,7 +1234,7 @@ void readgametype(MYFILE *f, INT32 num) else if (fastcmp(word, "IDENTIFIER")) { // GT_ - strncpy(gtconst, word2, MAXLINELEN); + strlcpy(gtconst, word2, sizeof(gtconst)); } // Point and time limits else if (fastcmp(word, "DEFAULTPOINTLIMIT"))