[Python-checkins] CVS: python/dist/src/Mac/Python macgetpath.c,1.24,1.25

Jack Jansen jackjansen@users.sourceforge.net
Fri, 14 Dec 2001 14:57:36 -0800


Update of /cvsroot/python/python/dist/src/Mac/Python
In directory usw-pr-cvs1:/tmp/cvs-serv18261/Python/Mac/Python

Modified Files:
	macgetpath.c 
Log Message:
Use getcwd(), not silly old getwd().

Index: macgetpath.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Python/macgetpath.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -C2 -d -r1.24 -r1.25
*** macgetpath.c	2001/09/10 22:00:39	1.24
--- macgetpath.c	2001/12/14 22:57:34	1.25
***************
*** 297,301 ****
     		printf("Python home dir exists but I cannot find the pathname!!\n");
  		name[0] = 0;
! 		(void)getwd(name);
  	}
  	diditbefore = 1;
--- 297,301 ----
     		printf("Python home dir exists but I cannot find the pathname!!\n");
  		name[0] = 0;
! 		(void)getcwd(name, sizeof(name));
  	}
  	diditbefore = 1;