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
@@ -758,8 +758,7 @@ void Characteristic_String(int character, int index, char *buf, int size)
//an integer will be converted to a float
if (ch->c[index].type == CT_STRING)
{
strncpy(buf, ch->c[index].value.string, size-1);
buf[size-1] = '\0';
Q_strncpyz(buf, ch->c[index].value.string, size);
} //end if
else
{