summaryrefslogtreecommitdiffstats
path: root/Mac
diff options
context:
space:
mode:
authorRonald Oussoren <ronaldoussoren@mac.com>2010-04-08 08:13:31 (GMT)
committerRonald Oussoren <ronaldoussoren@mac.com>2010-04-08 08:13:31 (GMT)
commit7591285fc31a84899370802c7f551afdaa386f74 (patch)
tree1552e1eb486611bc1ad97e2d9ba791484ed85190 /Mac
parentefc2f497fdbc31300e99712f44353a8b6f3d4879 (diff)
downloadcpython-7591285fc31a84899370802c7f551afdaa386f74.zip
cpython-7591285fc31a84899370802c7f551afdaa386f74.tar.gz
cpython-7591285fc31a84899370802c7f551afdaa386f74.tar.bz2
This check-in fixes two problems:
1) A non-critical off-by-one error in pythonw 2) A problem in the configure script that caused builds with '--enable-framework --enable-universalsdk=/' to fail on OSX 10.6.
Diffstat (limited to 'Mac')
-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 448e324..13df790 100644
--- a/Mac/Tools/pythonw.c
+++ b/Mac/Tools/pythonw.c
@@ -76,7 +76,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);