fixed some coverity warnings
This commit is contained in:
parent
3eb7668aa9
commit
95c121ef43
10 changed files with 127 additions and 56 deletions
|
|
@ -95,7 +95,7 @@ void NetworkMsg::Execute (void *p)
|
|||
switch (m_state)
|
||||
{
|
||||
case 0:
|
||||
strcpy (weaponProp.className, PTR_TO_STR (p));
|
||||
strncpy (weaponProp.className, PTR_TO_STR (p), sizeof (weaponProp.className));
|
||||
break;
|
||||
|
||||
case 1:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue