[Python-checkins] CVS: python/dist/src/Python getversion.c,1.14,1.15

Jeremy Hylton jhylton@users.sourceforge.net
Wed, 28 Nov 2001 12:41:05 -0800


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

Modified Files:
	getversion.c 
Log Message:
Use PyOS_snprintf instead of sprintf.



Index: getversion.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/getversion.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** getversion.c	2000/09/01 23:29:28	1.14
--- getversion.c	2001/11/28 20:41:03	1.15
***************
*** 10,15 ****
  {
  	static char version[250];
! 	sprintf(version, "%.80s (%.80s) %.80s", PY_VERSION,
! 		Py_GetBuildInfo(), Py_GetCompiler());
  	return version;
  }
--- 10,15 ----
  {
  	static char version[250];
! 	PyOS_snprintf(version, sizeof(version), "%.80s (%.80s) %.80s", 
! 		      PY_VERSION, Py_GetBuildInfo(), Py_GetCompiler());
  	return version;
  }