mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-05-03 06:46:38 -04:00
Use strtok_r consistently
This commit is contained in:
parent
d2bf1e6bd4
commit
bdcfe21ace
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue