Commit d1da12ca authored by Jack Jansen's avatar Jack Jansen

Use getcwd(), not silly old getwd().

parent 729d3dab
......@@ -296,7 +296,7 @@ PyMac_GetPythonDir()
/* If all fails, we return the current directory */
printf("Python home dir exists but I cannot find the pathname!!\n");
name[0] = 0;
(void)getwd(name);
(void)getcwd(name, sizeof(name));
}
diditbefore = 1;
return name;
......
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