lib: replace STRNCMP_LITERAL in __message_remove_indexed_terms
authorDavid Bremner <david@tethera.net>
Mon, 4 May 2020 13:55:43 +0000 (10:55 -0300)
committerDavid Bremner <david@tethera.net>
Mon, 4 May 2020 13:55:43 +0000 (10:55 -0300)
commit45cfeb2e557bb4eeb2a9821fa44207eeb6cd335c
tree4aaa0ae09288a14ed473660e2ff920b41a68be05
parentaccfee5c6e1f52979adf153126945dd7f49d1b4d
lib: replace STRNCMP_LITERAL in __message_remove_indexed_terms

strncmp looks for a prefix that matches, which is very much not what
we want here. This fixes the bug reported by Franz Fellner in
id:1588595993-ner-8.651@TPL520
lib/message.cc
test/T700-reindex.sh