diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2001-11-28 20:42:20 +0000 |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2001-11-28 20:42:20 +0000 |
commit | 350e448f76ffc612cb80cf82aed1616288d25cc3 (patch) | |
tree | 10c042251e2cfa7709ede71e9f227d909a9d6029 /Python/getversion.c | |
parent | e5c065977a2737987590159464bb10b30a87064d (diff) | |
download | cpython-350e448f76ffc612cb80cf82aed1616288d25cc3.tar.gz |
Use PyOS_snprintf instead of sprintf.
Diffstat (limited to 'Python/getversion.c')
-rw-r--r-- | Python/getversion.c | 4 |
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; } |