diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-02-22 14:53:11 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-02-22 14:53:11 +0100 |
commit | 0244c0d86cd86e4cc90e0c112c6edeafdfb558c2 (patch) | |
tree | b534b32562883064a09d856f700995a2f1b5cc42 /src/regex/plugin_block_regex.c | |
parent | 7184623654f81c1ba557f8fa95a3086342b4af6b (diff) |
strcmp instead of memcmp
Diffstat (limited to 'src/regex/plugin_block_regex.c')
-rw-r--r-- | src/regex/plugin_block_regex.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/regex/plugin_block_regex.c b/src/regex/plugin_block_regex.c index b9814c737d..19335e8157 100644 --- a/src/regex/plugin_block_regex.c +++ b/src/regex/plugin_block_regex.c @@ -100,13 +100,11 @@ block_plugin_regex_create_group (void *cls, const char *guard; guard = va_arg (va, const char *); - if (0 == memcmp (guard, - "seen-set-size", - strlen ("seen-set-size"))) + if (0 == strcmp (guard, + "seen-set-size")) bf_size = compute_bloomfilter_size (va_arg (va, unsigned int)); - else if (0 == memcmp (guard, - "filter-size", - strlen ("filter-size"))) + else if (0 == strcmp (guard, + "filter-size")) bf_size = va_arg (va, unsigned int); else { |