diff options
Diffstat (limited to 'Mac/Python')
-rw-r--r-- | Mac/Python/macgetpath.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Mac/Python/macgetpath.c b/Mac/Python/macgetpath.c index e087023..b79e90b 100644 --- a/Mac/Python/macgetpath.c +++ b/Mac/Python/macgetpath.c @@ -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; |