# HG changeset patch # Parent 1947cca7f583a22a1fba5900ca0c0d92038c84b9 diff --git a/Modules/getbuildinfo.c b/Modules/getbuildinfo.c --- a/Modules/getbuildinfo.c +++ b/Modules/getbuildinfo.c @@ -34,7 +34,9 @@ const char * Py_GetBuildInfo(void) { - static char buildinfo[50]; + static char buildinfo[50 + sizeof HGVERSION + + ((sizeof HGTAG > sizeof HGBRANCH) ? + sizeof HGTAG : sizeof HGBRANCH)]; const char *revision = _Py_hgversion(); const char *sep = *revision ? ":" : ""; const char *hgid = _Py_hgidentifier();