commit | 64be0b4aa5094d3a1a85eba20fcc9b7fca3289a9 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Sat Dec 01 16:00:10 2001 +0000 |
committer | Guido van Rossum <guido@python.org> | Sat Dec 01 16:00:10 2001 +0000 |
tree | 77910b693a9208b12fd52b2e3dca686a02ee2827 | |
parent | 82285dad8e107af5e89ea49ff784978170816a84 [diff] |
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.