]> git.notmuchmail.org Git - notmuch/blobdiff - lib/message.cc
Replace index(3) with strchr(3)
[notmuch] / lib / message.cc
index f8215a49f7dc93b482fb1d309b5ce8c68d6ba2f3..c2721191043e88e265a7920b89cc90b8a191719d 100644 (file)
@@ -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");