strcmp instead of memcmp
authorChristian Grothoff <christian@grothoff.org>
Wed, 22 Feb 2017 13:53:46 +0000 (14:53 +0100)
committerChristian Grothoff <christian@grothoff.org>
Wed, 22 Feb 2017 13:53:46 +0000 (14:53 +0100)
src/gns/plugin_block_gns.c

index 300dbc0202a4083574a5de53ce02d05e1724316b..8ce2d85dabcdf5019b75e82b7518a365e4ce415b 100644 (file)
@@ -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
   {