SIGN IN SIGN UP

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.
G
Guido van Rossum committed
64be0b4aa5094d3a1a85eba20fcc9b7fca3289a9
Parent: 82285da