mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
More sprintf -> PyOS_snprintf.
This commit is contained in:
parent
b38784e4a0
commit
22a51efc1c
2 changed files with 4 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
|||
#include "pyconfig.h"
|
||||
#include "Python.h"
|
||||
|
||||
#ifdef macintosh
|
||||
#include "macbuildno.h"
|
||||
|
@ -33,6 +33,7 @@ const char *
|
|||
Py_GetBuildInfo(void)
|
||||
{
|
||||
static char buildinfo[50];
|
||||
sprintf(buildinfo, "#%d, %.20s, %.9s", BUILD, DATE, TIME);
|
||||
PyOS_snprintf(buildinfo, sizeof(buildinfo),
|
||||
"#%d, %.20s, %.9s", BUILD, DATE, TIME);
|
||||
return buildinfo;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue