mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 07:31:38 +00:00 
			
		
		
		
	Allow longer strings (up to 80 chars each) for version, build,
compiler info.
This commit is contained in:
		
							parent
							
								
									b9f1f6d90b
								
							
						
					
					
						commit
						eda232fdac
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -38,8 +38,8 @@ PERFORMANCE OF THIS SOFTWARE.
 | 
			
		|||
const char *
 | 
			
		||||
Py_GetVersion()
 | 
			
		||||
{
 | 
			
		||||
	static char version[100];
 | 
			
		||||
	sprintf(version, "%.10s (%.40s) %.40s", PY_VERSION,
 | 
			
		||||
	static char version[250];
 | 
			
		||||
	sprintf(version, "%.80s (%.80s) %.80s", PY_VERSION,
 | 
			
		||||
		Py_GetBuildInfo(), Py_GetCompiler());
 | 
			
		||||
	return version;
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue