summaryrefslogtreecommitdiff
path: root/common.c
diff options
context:
space:
mode:
Diffstat (limited to 'common.c')
-rw-r--r--common.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/common.c b/common.c
index 21634d4..0ae0a61 100644
--- a/common.c
+++ b/common.c
@@ -44,10 +44,10 @@
// --- To be moved to liberty --------------------------------------------------
static void
-split_str (const char *s, char delimiter, struct str_vector *out)
+split_str (const char *s, const char *delimiters, struct str_vector *out)
{
const char *begin = s, *end;
- while ((end = strchr (begin, delimiter)))
+ while ((end = strpbrk (begin, delimiters)))
{
str_vector_add_owned (out, xstrndup (begin, end - begin));
begin = ++end;
@@ -1245,7 +1245,7 @@ config_item_get (struct config_item *self, const char *path, struct error **e)
struct str_vector v;
str_vector_init (&v);
- split_str (path, '.', &v);
+ split_str (path, ".", &v);
struct config_item *result = NULL;
size_t i = 0;