From: dalke at bioreason.com (Andrew Dalke)
Date: Wed, 21 Apr 1999 14:31:20 -0600
Subject: Buglet: egcs' name is too long for Python startup message
References: <slrn7hrj0v.siv.flight@freefly.hoffleit.org>
Message-ID: <371E3598.1E28EA19@bioreason.com>
X-UID: 1220                                                  

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




