summaryrefslogtreecommitdiffstats
path: root/Mac
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2001-12-14 22:57:34 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2001-12-14 22:57:34 (GMT)
commit031b779d439961c594e8c80df8f9e1f64b408921 (patch)
tree4a8330f4f85da038061787e46bdc87ada116e324 /Mac
parent08d752cf28619ecac70ff3528fd8d020378b007b (diff)
downloadcpython-031b779d439961c594e8c80df8f9e1f64b408921.zip
cpython-031b779d439961c594e8c80df8f9e1f64b408921.tar.gz
cpython-031b779d439961c594e8c80df8f9e1f64b408921.tar.bz2
Use getcwd(), not silly old getwd().
Diffstat (limited to 'Mac')
-rw-r--r--Mac/Python/macgetpath.c2
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;