From af1acdac9748910f6db8c8a3853ff72aeb948107 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Sun, 15 Oct 2017 16:52:43 +0200 Subject: [PATCH] make more use of equals() --- src/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.c b/src/util.c index f4dce49..8c56a28 100644 --- a/src/util.c +++ b/src/util.c @@ -491,7 +491,7 @@ map_name( const char *arg, char **result, int reserve, const char *in, const cha } assert( out ); outl = strlen( out ); - if (inl == outl && !memcmp( in, out, inl )) + if (equals( in, inl, out, outl )) goto copy; for (num = 0, i = 0; i < l; ) { for (ll = 0; ll < inl; ll++)