]> granicus.if.org Git - python/commit
The 'p' (Pascal string) pack code acts unreasonably when the string size
authorTim Peters <tim.peters@gmail.com>
Sat, 15 Sep 2001 02:35:15 +0000 (02:35 +0000)
committerTim Peters <tim.peters@gmail.com>
Sat, 15 Sep 2001 02:35:15 +0000 (02:35 +0000)
commit0891ac017dd02f9c592c40940dff6b050523be00
treec923b2083e61dfea689d38e7528a7e9936a5d9c1
parent1048aa933f096c33738f5088c7362a00e2c5b85c
The 'p' (Pascal string) pack code acts unreasonably when the string size
and count exceed 255.  Changed to preserve as much of the string as
possible (instead of count%256 characters).
Lib/test/test_struct.py
Modules/structmodule.c