aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--notmuch-config.c2
1 files changed, 1 insertions, 1 deletions
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"