From 9eb360329929258fb243cfb5095989ba45391109 Mon Sep 17 00:00:00 2001 From: David Edmondson Date: Mon, 5 Apr 2010 10:33:19 +0100 Subject: 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. --- notmuch-client.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'notmuch-client.h') diff --git a/notmuch-client.h b/notmuch-client.h index a090589e..d36b9ec1 100644 --- a/notmuch-client.h +++ b/notmuch-client.h @@ -132,6 +132,9 @@ show_message_body (const char *filename, notmuch_status_t show_one_part (const char *filename, int part); +char * +json_quote_chararray (const void *ctx, const char *str, const size_t len); + char * json_quote_str (const void *ctx, const char *str); -- cgit v1.2.3