From 55e3eb93718e9f3aab13ababc75a34d457e88031 Mon Sep 17 00:00:00 2001 From: "Paul D. Smith" Date: Wed, 21 Jul 1999 05:53:29 +0000 Subject: [PATCH] * Add configure option to enable dmalloc library. * Various code cleanups. --- lib-src/getopt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib-src/getopt.c b/lib-src/getopt.c index 03effcbdb3e..8eefe1168f7 100644 --- a/lib-src/getopt.c +++ b/lib-src/getopt.c @@ -652,7 +652,7 @@ _getopt_internal (argc, argv, optstring, longopts, longind, long_only) /* Test all long options for either exact match or abbreviated matches. */ for (p = longopts, option_index = 0; p->name; p++, option_index++) - if (!strncmp (p->name, nextchar, nameend - nextchar)) + if (strneq (p->name, nextchar, nameend - nextchar)) { if ((unsigned int) (nameend - nextchar) == (unsigned int) strlen (p->name)) @@ -839,7 +839,7 @@ _getopt_internal (argc, argv, optstring, longopts, longind, long_only) /* Test all long options for either exact match or abbreviated matches. */ for (p = longopts, option_index = 0; p->name; p++, option_index++) - if (!strncmp (p->name, nextchar, nameend - nextchar)) + if (strneq (p->name, nextchar, nameend - nextchar)) { if ((unsigned int) (nameend - nextchar) == strlen (p->name)) { -- 2.39.5