]> granicus.if.org Git - python/commit
When the number of bytes written to the malloc'ed buffer is larger
authorGuido van Rossum <guido@python.org>
Sat, 1 Dec 2001 16:00:10 +0000 (16:00 +0000)
committerGuido van Rossum <guido@python.org>
Sat, 1 Dec 2001 16:00:10 +0000 (16:00 +0000)
commit64be0b4aa5094d3a1a85eba20fcc9b7fca3289a9
tree77910b693a9208b12fd52b2e3dca686a02ee2827
parent82285dad8e107af5e89ea49ff784978170816a84
When the number of bytes written to the malloc'ed buffer is larger
than the argument string size, copy as many bytes as will fit
(including a terminating '\0'), rather than not copying anything.
This to make it satisfy the C99 spec.
Python/mysnprintf.c