Change-Id: I3aa91b54122d8f06028f9f0d310dc451babb0f8d
Signed-off-by: sungwook79.park <sungwook79.park@samsung.com>
PRINTFUNC(DLOG_DEBUG, "str = %s", str);
if (str != NULL) {
PRINTFUNC(DLOG_DEBUG, "str = %s", str);
if (str != NULL) {
- char *tok;
- tok = strtok(str, ",");
+ char *tok, *ptr;
+ tok = strtok_r(str, ",", &ptr);
while (tok != NULL) {
PRINTFUNC(DLOG_DEBUG, "tok = %s", tok);
emoticon_list.push_back(strtol(tok, (char **)NULL, 10));
while (tok != NULL) {
PRINTFUNC(DLOG_DEBUG, "tok = %s", tok);
emoticon_list.push_back(strtol(tok, (char **)NULL, 10));
- tok = strtok(NULL, ",");
+ tok = strtok_r(NULL, ",", &ptr);