mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 03:44:55 +00:00 
			
		
		
		
	Use getcwd(), not silly old getwd().
This commit is contained in:
		
							parent
							
								
									08d752cf28
								
							
						
					
					
						commit
						031b779d43
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -296,7 +296,7 @@ PyMac_GetPythonDir()
 | 
				
			||||||
 		/* If all fails, we return the current directory */
 | 
					 		/* If all fails, we return the current directory */
 | 
				
			||||||
   		printf("Python home dir exists but I cannot find the pathname!!\n");
 | 
					   		printf("Python home dir exists but I cannot find the pathname!!\n");
 | 
				
			||||||
		name[0] = 0;
 | 
							name[0] = 0;
 | 
				
			||||||
		(void)getwd(name);
 | 
							(void)getcwd(name, sizeof(name));
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	diditbefore = 1;
 | 
						diditbefore = 1;
 | 
				
			||||||
	return name;
 | 
						return name;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue