more fixes for coverity, now fixed what i have done in previous build :)

This commit is contained in:
jeefo 2015-06-29 21:49:52 +03:00
commit ff51914ea6
10 changed files with 75 additions and 54 deletions

View file

@ -131,7 +131,7 @@ int BotManager::CreateBot (const String &name, int difficulty, int personality,
continue;
pickedName->used = nameFound = true;
strncpy (outputName, pickedName->name, sizeof (outputName));
strncpy (outputName, pickedName->name, SIZEOF_CHAR (outputName));
steamId = pickedName->steamId;
}