]> diplodocus.org Git - nmh/commit
make scan_content() work correctly with content containing NULs
authorPaul Fox <pgf@foxharp.boston.ma.us>
Wed, 7 May 2014 23:36:56 +0000 (19:36 -0400)
committerPaul Fox <pgf@foxharp.boston.ma.us>
Thu, 8 May 2014 16:54:04 +0000 (12:54 -0400)
commit2878a6afb068ee13945aec07cc73a2202e97a86a
treeb2fe644610a6284755ae8d5ad86ff567e8c651f5
parent0860f098b5a13f4e8bedb2d2da9d2df94717b4a5
make scan_content() work correctly with content containing NULs

switched from fgets to getline for unambiguous reads in the face of
NUL bytes.  added a checkfornuls flag, and use it to cause the correct
encoding when content-types of application or text contain NULs.
uip/mhbuildsbr.c