Replace strncpy usage with Q_strncpyz
This commit is contained in:
1 parent
c8553223ec
commit
1132abe3dc
10 files changed
+16
-34
No files matched your search
+1
-2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user