Fix a bug introduced by r9495 in which we try to write temporary NULs
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Wed, 6 Jun 2012 17:59:37 +0000 (17:59 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Wed, 6 Jun 2012 17:59:37 +0000 (17:59 +0000)
commit9856b2637ad6d34dc05b6a4b41a0809db619537c
tree8706d0999bb59d520970d0eb89c1e24784989c23
parent75bed5b2d4b955c4f9cbed006ca00feb40842f27
Fix a bug introduced by r9495 in which we try to write temporary NULs
into a string which is usually a read-only string literal. Instead,
copy each segment into writable memory as we need it, and free it
afterwards.

git-svn-id: svn://svn.tartarus.org/sgt/puzzles@9558 cda61777-01e9-0310-a592-d414129be87e
osx.m