_PySys_Init(): It's rarely a good idea to size a buffer to the
commit32348a71ee7458de8c2abe4e185ee07f7f097c76
authortim.peters <tim.peters@6015fed2-1504-0410-9fe1-9d1591cc4771>
Tue, 6 Jun 2006 00:25:07 +0000 (6 00:25 +0000)
committertim.peters <tim.peters@6015fed2-1504-0410-9fe1-9d1591cc4771>
Tue, 6 Jun 2006 00:25:07 +0000 (6 00:25 +0000)
treed4b8d16f5aa6e15d6003f912a8ab4996de6958a7
parent1b83238bcbb567d4b20a9662796b99b15659525a
_PySys_Init():  It's rarely a good idea to size a buffer to the
exact maximum size someone guesses is needed.  In this case, if
we're really worried about extreme integers, then "cp%d" can
actually need 14 bytes (2 for "cp" + 1 for \0 at the end +
11 for -(2**31-1)).  So reserve 128 bytes instead -- nothing is
actually saved by making a stack-local buffer tiny.

git-svn-id: http://svn.python.org/projects/python/trunk@46686 6015fed2-1504-0410-9fe1-9d1591cc4771
Python/sysmodule.c