[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
- Previous message: [Python-checkins] CVS: python/dist/src/Python dynload_mac.c,2.11,2.12 dynload_next.c,2.8,2.9 dynload_os2.c,2.6,2.7 dynload_shlib.c,2.12,2.13 dynload_win.c,2.9,2.10
- Next message: [Python-checkins] CVS: python/dist/src/Python pythonrun.c,2.150,2.151
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
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;
}
- Previous message: [Python-checkins] CVS: python/dist/src/Python dynload_mac.c,2.11,2.12 dynload_next.c,2.8,2.9 dynload_os2.c,2.6,2.7 dynload_shlib.c,2.12,2.13 dynload_win.c,2.9,2.10
- Next message: [Python-checkins] CVS: python/dist/src/Python pythonrun.c,2.150,2.151
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]