Remove strncopy from the core/logic bridge.

This commit is contained in:
David Anderson
2015-08-30 18:21:07 -07:00
parent 3786a2756b
commit a158205f30
10 changed files with 28 additions and 50 deletions
+2 -1
View File
@@ -40,6 +40,7 @@
#include "GameConfigs.h"
#include "CellArray.h"
#include "AutoHandleRooter.h"
#include "stringutil.h"
using namespace SourceHook;
using namespace SourceMod;
@@ -163,7 +164,7 @@ public: //ICommandTargetProcessor
? COMMAND_TARGET_VALID
: COMMAND_TARGET_EMPTY_FILTER;
if (info->num_targets) {
smcore.strncopy(info->target_name, smtf->phrase.c_str(), info->target_name_maxlength);
strncopy(info->target_name, smtf->phrase.c_str(), info->target_name_maxlength);
info->target_name_style = smtf->phraseIsML
? COMMAND_TARGETNAME_ML
: COMMAND_TARGETNAME_RAW;