Commit a1cc3122 by Serge Hallyn Committed by Stéphane Graber

on_path: use strtok_r consistently

parent 993625a0
......@@ -1263,7 +1263,7 @@ bool on_path(char *cmd) {
}
next_loop:
entry = strtok(NULL, ":");
entry = strtok_r(NULL, ":", &saveptr);
}
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