]> granicus.if.org Git - python/commitdiff
Use getcwd(), not silly old getwd().
authorJack Jansen <jack.jansen@cwi.nl>
Fri, 14 Dec 2001 22:57:34 +0000 (22:57 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Fri, 14 Dec 2001 22:57:34 +0000 (22:57 +0000)
Mac/Python/macgetpath.c

index e08702377812ed1f73a64e90d3cd648636710c10..b79e90b001ec76ce797692c1ac5c5a140e7ea132 100644 (file)
@@ -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;