Commit b707e368 by Serge Hallyn

on_path: use strtok_r consistently

parent 0e6e3a41
...@@ -1263,7 +1263,7 @@ bool on_path(char *cmd) { ...@@ -1263,7 +1263,7 @@ bool on_path(char *cmd) {
} }
next_loop: next_loop:
entry = strtok(NULL, ":"); entry = strtok_r(NULL, ":", &saveptr);
} }
free(path); free(path);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment