diff Mac/Python/macgetpath.c @ 21423:274aa91b417c legacy-trunk

Use getcwd(), not silly old getwd().
author Jack Jansen <jack.jansen@cwi.nl>
date Fri, 14 Dec 2001 22:57:34 +0000
parents d8dd75e3b304
children 5f2dcdd09329
line wrap: on
line diff
--- a/Mac/Python/macgetpath.c	Fri Dec 14 22:55:14 2001 +0000
+++ b/Mac/Python/macgetpath.c	Fri Dec 14 22:57:34 2001 +0000
@@ -296,7 +296,7 @@
  		/* 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;