diff options
| author | Guido van Rossum <guido@python.org> | 2001-12-01 16:00:10 +0000 |
|---|---|---|
| committer | Guido van Rossum <guido@python.org> | 2001-12-01 16:00:10 +0000 |
| commit | 64be0b4aa5094d3a1a85eba20fcc9b7fca3289a9 (patch) | |
| tree | 77910b693a9208b12fd52b2e3dca686a02ee2827 /Lib/types.py | |
| parent | 82285dad8e107af5e89ea49ff784978170816a84 (diff) | |
| download | cpython-git-64be0b4aa5094d3a1a85eba20fcc9b7fca3289a9.tar.gz | |
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.
Diffstat (limited to 'Lib/types.py')
0 files changed, 0 insertions, 0 deletions
