]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Allow longer strings (up to 80 chars each) for version, build,
authorGuido van Rossum <guido@python.org>
Thu, 22 Apr 1999 12:03:40 +0000 (12:03 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 22 Apr 1999 12:03:40 +0000 (12:03 +0000)
compiler info.

Python/getversion.c

index 9f57d6e5a65d8a5ba3aa709eec6868bced316cc0..49344ee02331114148fb3b823faef42711198047 100644 (file)
@@ -38,8 +38,8 @@ PERFORMANCE OF THIS SOFTWARE.
 const char *
 Py_GetVersion()
 {
-       static char version[100];
-       sprintf(version, "%.10s (%.40s) %.40s", PY_VERSION,
+       static char version[250];
+       sprintf(version, "%.80s (%.80s) %.80s", PY_VERSION,
                Py_GetBuildInfo(), Py_GetCompiler());
        return version;
 }