Replace strncpy usage with Q_strncpyz

This commit is contained in:
Zack Middleton authored and Tim Angus committed 2025-07-24 09:47:13 +01:00
1 parent c8553223ec
commit 1132abe3dc
10 files changed
+16 -34

No files matched your search

+1 -2
View File
@@ -237,8 +237,7 @@ char *BotMapTitle(void) {
trap_GetServerinfo(info, sizeof(info));
strncpy(mapname, Info_ValueForKey( info, "mapname" ), sizeof(mapname)-1);
mapname[sizeof(mapname)-1] = '\0';
Q_strncpyz(mapname, Info_ValueForKey( info, "mapname" ), sizeof(mapname));
return mapname;
}