diff --git a/src/dispatch/bind_define.h b/src/dispatch/bind_define.h index 89772e16..1c79ec1b 100644 --- a/src/dispatch/bind_define.h +++ b/src/dispatch/bind_define.h @@ -911,7 +911,7 @@ int32_t spawn(const Arg *arg) { argv[argc] = strdup(token); } argc++; - token = strtok(NULL, " "); + token = strtok_r(NULL, " ", &last); } if (argc == 0) {