Forgot to increment token

This commit is contained in:
Kovid Goyal 2020-08-22 14:37:20 +05:30
parent 67b4f37d53
commit 95c8bbd7fb
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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;