]> granicus.if.org Git - python/commit
Fix issue2588: Do not execute str[size-1] = '\0' when a 0 size is
authorGregory P. Smith <greg@mad-scientist.com>
Mon, 26 May 2008 22:07:28 +0000 (22:07 +0000)
committerGregory P. Smith <greg@mad-scientist.com>
Mon, 26 May 2008 22:07:28 +0000 (22:07 +0000)
commit933d3731deab19b2565fbb0d07511e67277d3d58
treee532e7cc01734749d17751f5e9b96ea85a8bd274
parentc1c83bb0dec06ecc4580935a8f77782d3beaff4d
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).
Python/mysnprintf.c