From 797aeba80acd8a09fe4e2da16ad5eaec4c8bde2c Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 22 Feb 2017 14:53:46 +0100 Subject: [PATCH] strcmp instead of memcmp --- src/gns/plugin_block_gns.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/gns/plugin_block_gns.c b/src/gns/plugin_block_gns.c index 300dbc020..8ce2d85da 100644 --- a/src/gns/plugin_block_gns.c +++ b/src/gns/plugin_block_gns.c @@ -98,13 +98,11 @@ block_plugin_gns_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 { -- 2.25.1