fixed some coverity warnings

This commit is contained in:
jeefo 2015-06-29 20:51:25 +03:00
commit 95c121ef43
10 changed files with 127 additions and 56 deletions

View file

@ -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: