diff options
| author | Joseph Hunkeler <jhunkeler@gmail.com> | 2026-06-22 00:31:24 -0400 |
|---|---|---|
| committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2026-06-22 10:13:25 -0400 |
| commit | 0ca7cf386844ca153cf081f457921156aecda909 (patch) | |
| tree | 43ffea794a955f26b7b48d1b101b72d1042a6aa2 | |
| parent | 64bc08022716291b8bd388d28506ca4c35f70f6b (diff) | |
| download | stasis-0ca7cf386844ca153cf081f457921156aecda909.tar.gz | |
BUGFIX: strlist_contains now uses strstr instead of strcmp
* The match was never intended to be exact
| -rw-r--r-- | src/lib/core/strlist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/core/strlist.c b/src/lib/core/strlist.c index 8729266..e209bdf 100644 --- a/src/lib/core/strlist.c +++ b/src/lib/core/strlist.c @@ -176,7 +176,7 @@ int strlist_contains(struct StrList *pStrList, const char *value, size_t *index_ } break; } - if (!strcmp(item, value)) { + if (strstr(item, value)) { if (index_of) { *index_of = i; } |
