Use strlcpy here

This commit is contained in:
Lactozilla 2023-11-25 15:49:26 -03:00
parent 981f515919
commit 0fb15a3f35

View file

@ -1234,7 +1234,7 @@ void readgametype(MYFILE *f, INT32 num)
else if (fastcmp(word, "IDENTIFIER")) else if (fastcmp(word, "IDENTIFIER"))
{ {
// GT_ // GT_
strncpy(gtconst, word2, MAXLINELEN); strlcpy(gtconst, word2, sizeof(gtconst));
} }
// Point and time limits // Point and time limits
else if (fastcmp(word, "DEFAULTPOINTLIMIT")) else if (fastcmp(word, "DEFAULTPOINTLIMIT"))