summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-03-09 11:47:20 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2011-03-09 11:47:20 (GMT)
commit35db8a80c19aef7418ed4e1572b962cba6577625 (patch)
treef658770b73f8f513592ac51e4d0b671265e468be /Modules
parent2d12f96658db7f1257ac8e15908ce0a8ac96f735 (diff)
parent7983d33f543685564ba6b900e162a9aaadb2ea82 (diff)
downloadcpython-35db8a80c19aef7418ed4e1572b962cba6577625.zip
cpython-35db8a80c19aef7418ed4e1572b962cba6577625.tar.gz
cpython-35db8a80c19aef7418ed4e1572b962cba6577625.tar.bz2
Merge fix for issue #11450
Diffstat (limited to 'Modules')
-rw-r--r--Modules/getbuildinfo.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Modules/getbuildinfo.c b/Modules/getbuildinfo.c
index c70126d..ac51881 100644
--- a/Modules/getbuildinfo.c
+++ b/Modules/getbuildinfo.c
@@ -42,7 +42,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();