notmuch: Correctly terminate text/* parts in JSON output
authorDavid Edmondson <dme@dme.org>
Mon, 5 Apr 2010 09:33:19 +0000 (10:33 +0100)
committerCarl Worth <cworth@cworth.org>
Mon, 5 Apr 2010 17:57:23 +0000 (10:57 -0700)
commit9eb360329929258fb243cfb5095989ba45391109
tree3315907a0b75a377e48a4ea44fd237307681122f
parentbb5211684654b7cf54f842990a733a64fe01d612
notmuch: Correctly terminate text/* parts in JSON output

Text parts returned by `g_mime_stream_mem_get_byte_array()' are not
NULL terminated strings - add `json_quote_chararray()' to handle them
correctly.
json.c
notmuch-client.h
notmuch-show.c