Change-Id: I17b55fdf699aa2f8c8499035dbe47afcd5b7025e
Signed-off-by: Jinhyung Choi <jinh0.choi@samsung.com>
memset(param, 0, sizeof(*param));
param->ActionID = ijcmd->msg.action;
- memcpy(param->type_cmd, ijcmd->cmd, ID_SIZE);
+ strncpy(param->type_cmd, ijcmd->cmd, sizeof(param->type_cmd) - 1);
if (pthread_create(&tid[TID_SENSOR], NULL, getting_sensor, (void*)param) != 0)
{
return true;
param->ActionID = ijcmd->msg.action;
- memcpy(param->type_cmd, ijcmd->cmd, ID_SIZE);
+ strncpy(param->type_cmd, ijcmd->cmd, sizeof(param->type_cmd) - 1);
if (pthread_create(&tid[TID_LOCATION], NULL, getting_location, (void*) param) != 0)
{