mirror of
https://github.com/python/cpython.git
synced 2025-11-01 14:11:41 +00:00
Use PyOS_snprintf instead of sprintf.
This commit is contained in:
parent
ef58b31991
commit
518ab1c02a
13 changed files with 45 additions and 39 deletions
|
|
@ -9,7 +9,7 @@ const char *
|
|||
Py_GetVersion(void)
|
||||
{
|
||||
static char version[250];
|
||||
sprintf(version, "%.80s (%.80s) %.80s", PY_VERSION,
|
||||
Py_GetBuildInfo(), Py_GetCompiler());
|
||||
PyOS_snprintf(version, sizeof(version), "%.80s (%.80s) %.80s",
|
||||
PY_VERSION, Py_GetBuildInfo(), Py_GetCompiler());
|
||||
return version;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue