Allow longer strings (up to 80 chars each) for version, build,

compiler info.
This commit is contained in:
Guido van Rossum 1999-04-22 12:03:40 +00:00
parent b9f1f6d90b
commit eda232fdac

View File

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