Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit eda232f

Browse files
committed
Allow longer strings (up to 80 chars each) for version, build,
compiler info.
1 parent b9f1f6d commit eda232f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Python/getversion.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ PERFORMANCE OF THIS SOFTWARE.
3838
const char *
3939
Py_GetVersion()
4040
{
41-
static char version[100];
42-
sprintf(version, "%.10s (%.40s) %.40s", PY_VERSION,
41+
static char version[250];
42+
sprintf(version, "%.80s (%.80s) %.80s", PY_VERSION,
4343
Py_GetBuildInfo(), Py_GetCompiler());
4444
return version;
4545
}

0 commit comments

Comments
 (0)