Remove strncopy().

This commit is contained in:
David Anderson
2015-09-09 14:57:47 -07:00
parent 67ba703b84
commit e08697ad54
13 changed files with 37 additions and 39 deletions
+3 -2
View File
@@ -38,6 +38,7 @@
#elif SOURCE_ENGINE == SE_CSGO
#include <cstrike15_usermessage_helpers.h>
#endif
#include <amtl/am-string.h>
UserMessages g_UserMsgs;
@@ -158,7 +159,7 @@ bool UserMessages::GetMessageName(int msgid, char *buffer, size_t maxlength) con
if (!pszName)
return false;
strncopy(buffer, pszName, maxlength);
ke::SafeStrcpy(buffer, maxlength, pszName);
return true;
#else
if (m_FallbackSearch)
@@ -171,7 +172,7 @@ bool UserMessages::GetMessageName(int msgid, char *buffer, size_t maxlength) con
if (msg)
{
strncopy(buffer, msg, maxlength);
ke::SafeStrcpy(buffer, maxlength, msg);
return true;
}