From: Mehdi Abaakouk Date: Thu, 21 Sep 2017 17:29:50 +0000 (+0200) Subject: always pass char to mutt_str_append_item X-Git-Tag: neomutt-20171006~8^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=refs%2Fpull%2F764%2Fhead;p=neomutt always pass char to mutt_str_append_item --- diff --git a/imap/message.c b/imap/message.c index c54d6a9ef..65f5dc416 100644 --- a/imap/message.c +++ b/imap/message.c @@ -211,10 +211,10 @@ static char *msg_parse_flags(struct ImapHeader *h, char *s) /* store other system flags as well (mainly \\Draft) */ if (is_system_keyword) - mutt_str_append_item(&hd->flags_system, flag_word, 32); + mutt_str_append_item(&hd->flags_system, flag_word, ' '); /* store custom flags as well */ else - mutt_str_append_item(&hd->flags_remote, flag_word, 32); + mutt_str_append_item(&hd->flags_remote, flag_word, ' '); *s = ctmp; } diff --git a/mutt_notmuch.c b/mutt_notmuch.c index 161a93a3c..a9ead1ab5 100644 --- a/mutt_notmuch.c +++ b/mutt_notmuch.c @@ -1704,8 +1704,8 @@ int nm_read_entire_thread(struct Context *ctx, struct Header *h) id = notmuch_message_get_thread_id(msg); if (!id) goto done; - mutt_str_append_item(&qstr, "thread:", 0); - mutt_str_append_item(&qstr, id, 0); + mutt_str_append_item(&qstr, "thread:", '\0'); + mutt_str_append_item(&qstr, id, '\0'); q = notmuch_query_create(db, qstr); FREE(&qstr);