mirror of
https://github.com/ValveSoftware/source-sdk-2013.git
synced 2024-12-04 01:42:09 +00:00
Use Q_strncpy in utils/vbsp/detailobjects.cpp.
This commit is contained in:
parent
b64d2e878c
commit
63325a7174
2 changed files with 2 additions and 2 deletions
|
@ -379,7 +379,7 @@ static int SelectDetail( DetailObjectGroup_t const& group )
|
||||||
static int AddDetailDictLump( const char* pModelName )
|
static int AddDetailDictLump( const char* pModelName )
|
||||||
{
|
{
|
||||||
DetailObjectDictLump_t dictLump;
|
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; )
|
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 )
|
static int AddDetailDictLump( const char* pModelName )
|
||||||
{
|
{
|
||||||
DetailObjectDictLump_t dictLump;
|
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; )
|
for (int i = s_DetailObjectDictLump.Count(); --i >= 0; )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue