aboutsummaryrefslogtreecommitdiffhomepage
path: root/notmuch-client.h
diff options
context:
space:
mode:
authorGravatar David Edmondson <dme@dme.org>2010-04-05 10:33:19 +0100
committerGravatar Carl Worth <cworth@cworth.org>2010-04-05 10:57:23 -0700
commit9eb360329929258fb243cfb5095989ba45391109 (patch)
tree3315907a0b75a377e48a4ea44fd237307681122f /notmuch-client.h
parentbb5211684654b7cf54f842990a733a64fe01d612 (diff)
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.
Diffstat (limited to 'notmuch-client.h')
-rw-r--r--notmuch-client.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/notmuch-client.h b/notmuch-client.h
index a090589e..d36b9ec1 100644
--- a/notmuch-client.h
+++ b/notmuch-client.h
@@ -133,6 +133,9 @@ 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);
/* notmuch-config.c */