Fix issue2588: Do not execute str[size-1] = '\0' when a 0 size is
commitc9aaa2650a3bad5a2f743af179bbbc6cd2a24893
authorgregory.p.smith <gregory.p.smith@6015fed2-1504-0410-9fe1-9d1591cc4771>
Mon, 26 May 2008 22:07:28 +0000 (26 22:07 +0000)
committergregory.p.smith <gregory.p.smith@6015fed2-1504-0410-9fe1-9d1591cc4771>
Mon, 26 May 2008 22:07:28 +0000 (26 22:07 +0000)
tree7e3df344210f5dbc68a4cbe5a1643f25ea15bfea
parent47efad098a705512423210305a7eef865d1a3bb1
Fix issue2588: Do not execute str[size-1] = '\0' when a 0 size is
passed in.  (The assert won't prevent this in non-debug builds).

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