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
@@ -33,6 +33,7 @@
#include "common_logic.h"
#include "CellArray.h"
#include "handle_helpers.h"
#include "stringutil.h"
HandleType_t htCellStack;
@@ -125,7 +126,7 @@ static cell_t PushStackString(IPluginContext *pContext, const cell_t *params)
char *str;
pContext->LocalToString(params[2], &str);
smcore.strncopy((char *)blk, str, array->blocksize() * sizeof(cell_t));
strncopy((char *)blk, str, array->blocksize() * sizeof(cell_t));
return 1;
}