ref: 48e9767a206420294147f802a8a2cc5c9e77141c
parent: 5a095b8a08fa9f087b93c86aea0fa027138b028d
author: Simon Tatham <anakin@pobox.com>
date: Wed Jun 6 13:59:37 EDT 2012
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. [originally from svn r9558] [r9495 == d0ff371b144d4bfe3cbfb062388347c08e431393]