Use strtok_r consistently

This commit is contained in:
GH 2026-04-10 19:16:26 +02:00
parent d2bf1e6bd4
commit bdcfe21ace

View file

@ -911,7 +911,7 @@ int32_t spawn(const Arg *arg) {
argv[argc] = strdup(token); argv[argc] = strdup(token);
} }
argc++; argc++;
token = strtok(NULL, " "); token = strtok_r(NULL, " ", &last);
} }
if (argc == 0) { if (argc == 0) {