Use getline instead of readline
This commit is contained in:
@@ -124,7 +124,7 @@ void parse_options(int argc, char **argv) {
|
||||
}
|
||||
}
|
||||
|
||||
_options.filenames = (const char**) argv + optind;
|
||||
_options.filenames = argv + optind;
|
||||
_options.filecnt = argc - optind;
|
||||
_options.from_stdin = _options.filecnt == 1 &&
|
||||
strcmp(_options.filenames[0], "-") == 0;
|
||||
|
||||
Reference in New Issue
Block a user