From: Jack Jansen Date: Fri, 14 Dec 2001 22:57:34 +0000 (+0000) Subject: Use getcwd(), not silly old getwd(). X-Git-Tag: v2.2.1c1~351 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=031b779d439961c594e8c80df8f9e1f64b408921;p=thirdparty%2FPython%2Fcpython.git Use getcwd(), not silly old getwd(). --- diff --git a/Mac/Python/macgetpath.c b/Mac/Python/macgetpath.c index e08702377812..b79e90b001ec 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;