# HG changeset patch # User Paul D. Smith # Date 932536409 0 # Node ID 1a697e2604c3e33703b14b26032b2a6610929f21 # Parent ba243531aa37718285dfa33e239b8bc73e617354 * Add configure option to enable dmalloc library. * Various code cleanups. diff -r ba243531aa37 -r 1a697e2604c3 lib-src/getopt.c --- a/lib-src/getopt.c Tue Jul 20 22:53:17 1999 +0000 +++ b/lib-src/getopt.c Wed Jul 21 05:53:29 1999 +0000 @@ -652,7 +652,7 @@ /* 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 @@ /* 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)) {