diff options
Diffstat (limited to 'util/cbfstool/cbfstool.c')
-rw-r--r-- | util/cbfstool/cbfstool.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/cbfstool/cbfstool.c b/util/cbfstool/cbfstool.c index 6b520628f1..4202801471 100644 --- a/util/cbfstool/cbfstool.c +++ b/util/cbfstool/cbfstool.c @@ -563,7 +563,7 @@ int main(int argc, char **argv) break; /* filter out illegal long options */ - if (index(commands[i].optstring, c) == NULL) { + if (strchr(commands[i].optstring, c) == NULL) { /* TODO maybe print actual long option instead */ printf("%s: invalid option -- '%c'\n", argv[0], c); |