* Add configure option to enable dmalloc library.
* Various code cleanups.
This commit is contained in:
parent
35194e3f1a
commit
55e3eb9371
1 changed files with 2 additions and 2 deletions
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue