Forgot to increment token
This commit is contained in:
parent
67b4f37d53
commit
95c8bbd7fb
1 changed files with 1 additions and 0 deletions
|
|
@ -160,6 +160,7 @@ read_exe_path(char *exe, size_t buf_sz) {
|
|||
char q[PATH_MAX + 1] = {0};
|
||||
snprintf(q, PATH_MAX, "%s/kitty", token);
|
||||
if (safe_realpath(q, exe, buf_sz)) return true;
|
||||
token = strtok(NULL, ":");
|
||||
}
|
||||
fprintf(stderr, "kitty not found in PATH aborting\n");
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Reference in a new issue