use case-insensitive comparison in set_table_opts

(similar to how arguments such as -inform/-outform specifications
are treated)
This commit is contained in:
Bodo Möller 2001-02-10 11:21:29 +00:00
parent ccb08f98ae
commit c15e036398

View File

@ -806,7 +806,7 @@ static int set_table_opts(unsigned long *flags, const char *arg, const NAME_EX_T
} else c = 1; } else c = 1;
for(ptbl = in_tbl; ptbl->name; ptbl++) { for(ptbl = in_tbl; ptbl->name; ptbl++) {
if(!strcmp(arg, ptbl->name)) { if(!strcasecmp(arg, ptbl->name)) {
*flags &= ~ptbl->mask; *flags &= ~ptbl->mask;
if(c) *flags |= ptbl->flag; if(c) *flags |= ptbl->flag;
else *flags &= ~ptbl->flag; else *flags &= ~ptbl->flag;