From a08904688e9c6e9856b50301fa2cda2ad9b2c04e Mon Sep 17 00:00:00 2001 From: Kamil Trzcinski Date: Mon, 11 Apr 2022 10:07:31 +0200 Subject: [PATCH] Fix `log-filter` in `opts/log.c` --- opts/log.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/opts/log.c b/opts/log.c index ea161ea..5b442e2 100644 --- a/opts/log.c +++ b/opts/log.c @@ -1,4 +1,5 @@ #include "opts/log.h" +#include "opts/opts.h" #define _GNU_SOURCE #include @@ -28,7 +29,7 @@ bool filter_log(const char *filename) const char *ptr = log_options.filter; do { - const char *next = strchr(ptr, ','); + const char *next = strchr(ptr, OPTION_VALUE_LIST_SEP[0]); if (!next) next = ptr + strlen(ptr);