Buglet: egcs' name is too long for Python startup message

Andrew Dalke dalke at bioreason.com
Wed Apr 21 16:31:20 EDT 1999


Gregor Hoffleit <flight at mathi.uni-heidelberg.de> suggested a patch:
> --- python-1.5.2.orig/Python/getversion.c
> +++ python-1.5.2/Python/getversion.c
> @@ -39,7 +39,7 @@
>  Py_GetVersion()
>  {
>         static char version[100];
> -       sprintf(version, "%.10s (%.40s) %.40s", PY_VERSION,
> +       sprintf(version, "%.10s (%.40s) %.80s", PY_VERSION,
>                 Py_GetBuildInfo(), Py_GetCompiler());
>         return version;
>  }

And you probably want to use

  static char version[140];

instead of 100 (since you now allow 80+40+10+5 = 135 characters).

						Andrew
						dalke at acm.org




More information about the Python-list mailing list