summaryrefslogtreecommitdiffstats
path: root/Mac/Tools/pythonw.c
diff options
context:
space:
mode:
Diffstat (limited to 'Mac/Tools/pythonw.c')
-rw-r--r--Mac/Tools/pythonw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Mac/Tools/pythonw.c b/Mac/Tools/pythonw.c
index 5fc59b5..1f3e0ce 100644
--- a/Mac/Tools/pythonw.c
+++ b/Mac/Tools/pythonw.c
@@ -78,7 +78,7 @@ static char* get_python_path(void)
end --;
}
end++;
- if (end[1] == '.') {
+ if (*end == '.') {
end++;
}
strcpy(end, "Resources/Python.app/Contents/MacOS/" PYTHONFRAMEWORK);
@@ -161,7 +161,7 @@ main(int argc, char **argv) {
setup_spawnattr(&spawnattr);
posix_spawn(NULL, exec_path, NULL,
&spawnattr, argv, environ);
- err(1, "posix_spawn: %s", argv[0]);
+ err(1, "posix_spawn: %s", exec_path);
}
#endif
execve(exec_path, argv, environ);