Use Q_strncpy in utils/vbsp/detailobjects.cpp.

This commit is contained in:
Jonas 'Sortie' Termansen 2013-08-11 12:13:27 +02:00
parent b64d2e878c
commit 63325a7174
2 changed files with 2 additions and 2 deletions

View File

@ -379,7 +379,7 @@ static int SelectDetail( DetailObjectGroup_t const& group )
static int AddDetailDictLump( const char* pModelName )
{
DetailObjectDictLump_t dictLump;
strncpy( dictLump.m_Name, pModelName, DETAIL_NAME_LENGTH );
Q_strncpy( dictLump.m_Name, pModelName, DETAIL_NAME_LENGTH );
for (int i = s_DetailObjectDictLump.Count(); --i >= 0; )
{

View File

@ -379,7 +379,7 @@ static int SelectDetail( DetailObjectGroup_t const& group )
static int AddDetailDictLump( const char* pModelName )
{
DetailObjectDictLump_t dictLump;
strncpy( dictLump.m_Name, pModelName, DETAIL_NAME_LENGTH );
Q_strncpy( dictLump.m_Name, pModelName, DETAIL_NAME_LENGTH );
for (int i = s_DetailObjectDictLump.Count(); --i >= 0; )
{