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
@@ -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
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user