X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch-config.c;h=6845e3c3db5d3af6f5a9d25f39d4eb8060a1e41a;hp=befe9b5b5c8a45a084d7a3fd2738b5344fa4a7bb;hb=730b8f61e0cf4b2e8c0f123c0914d472d6df38fc;hpb=9641fe1ce70d804ab4a9f63671e3905944dba7e5 diff --git a/notmuch-config.c b/notmuch-config.c index befe9b5b..6845e3c3 100644 --- a/notmuch-config.c +++ b/notmuch-config.c @@ -704,7 +704,7 @@ _item_split (char *item, char **group, char **key) *group = item; - period = index (item, '.'); + period = strchr (item, '.'); if (period == NULL || *(period+1) == '\0') { fprintf (stderr, "Invalid configuration name: %s\n"