From 5ee58c49bb305897c48f7de366a8a572c0ce533b Mon Sep 17 00:00:00 2001 From: Richard Russon Date: Tue, 24 Jan 2017 18:58:38 +0000 Subject: [PATCH] notmuch: fix toggle labels Fix the comparison of labels when toggling. Thanks to Pietro Cerutti (@gahr) for spotting this. --- mutt_notmuch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mutt_notmuch.c b/mutt_notmuch.c index e66d380ea..5cba5428f 100644 --- a/mutt_notmuch.c +++ b/mutt_notmuch.c @@ -1330,7 +1330,7 @@ static bool nm_message_has_tag(notmuch_message_t *msg, char *tag) notmuch_tags_move_to_next(tags)) { possible_match_tag = notmuch_tags_get(tags); - if (mutt_strncmp(possible_match_tag, tag, mutt_strlen(tag)) == 0) + if (mutt_strcmp(possible_match_tag, tag) == 0) { return true; } -- 2.40.0