diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-01-10 13:35:47 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-01-10 13:35:47 +0000 |
| commit | 9d183b0d37c02279cefad1deb5b73a2b5c9bb6e2 (patch) | |
| tree | e4936030956a48d83f990978e6363ca81f891fb3 /tools/dcpdiff.cc | |
| parent | c763ce17ea1d2bf621a343c4893f5d0c390ec433 (diff) | |
Fix crash with insufficient parameters to libdcp.
Diffstat (limited to 'tools/dcpdiff.cc')
| -rw-r--r-- | tools/dcpdiff.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/dcpdiff.cc b/tools/dcpdiff.cc index af0e1854..5e0560a0 100644 --- a/tools/dcpdiff.cc +++ b/tools/dcpdiff.cc @@ -193,7 +193,7 @@ main (int argc, char* argv[]) } } - if (argc <= optind || argc > (optind + 2)) { + if (argc <= (optind + 1) || argc > (optind + 2)) { help (argv[0]); exit (EXIT_FAILURE); } |
