use case-insensitive comparison in set_table_opts
(similar to how arguments such as -inform/-outform specifications are treated)
This commit is contained in:
parent
ccb08f98ae
commit
c15e036398
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user