mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2024-12-27 07:15:31 +03:00
Use Q_strncpy in utils/vbsp/detailobjects.cpp.
This commit is contained in:
parent
b64d2e878c
commit
63325a7174
@ -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; )
|
||||
{
|
||||
|
@ -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; )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user