Remove strncopy from the core/logic bridge.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user