X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=lib%2Fmessage.cc;h=b330dcce5ecf374b7f6009ffbbd327fa1d95eaec;hp=f8215a49f7dc93b482fb1d309b5ce8c68d6ba2f3;hb=30c475c1ef3d6823ed9ab0affc30328726c5240f;hpb=5ce8e0b11b40f733e6231d2067764e76717a341a diff --git a/lib/message.cc b/lib/message.cc index f8215a49..b330dcce 100644 --- a/lib/message.cc +++ b/lib/message.cc @@ -26,7 +26,7 @@ #include -struct visible _notmuch_message { +struct _notmuch_message { notmuch_database_t *notmuch; Xapian::docid doc_id; int frozen; @@ -1843,7 +1843,7 @@ _notmuch_message_ensure_property_map (notmuch_message_t *message) const char *key; char *value; - value = index(node->string, '='); + value = strchr(node->string, '='); if (!value) INTERNAL_ERROR ("malformed property term");