summaryrefslogtreecommitdiff
path: root/Python/getversion.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/getversion.c')
-rw-r--r--Python/getversion.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/getversion.c b/Python/getversion.c
index b0ef3896ef..7af16fc810 100644
--- a/Python/getversion.c
+++ b/Python/getversion.c
@@ -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;
}