Change-Id: I0e37e1834494a45aa0932af217660f2facdea2b5
Signed-off-by: Wonnam Jang <wn.jang@samsung.com>
}
}
if (found) {
+ char *tmp_buf = NULL;
char *tmp_cmd = strdup(cmd);
- char *command = strtok(tmp_cmd, " ");
- char *param = strtok(NULL, "'");
+ char *command = strtok_r(tmp_cmd, " ", &tmp_buf);
+ char *param = strtok_r(NULL, "'", &tmp_buf);
found->cmd = command;
VC_ELM_LOG_DBG("unwrapping %s %s for %s", param1, param2, _get_ui_object_name(found->obj));