projects
/
libdcp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c763ce1
)
Fix crash with insufficient parameters to libdcp.
author
Carl Hetherington
<cth@carlh.net>
Thu, 10 Jan 2019 13:35:47 +0000
(13:35 +0000)
committer
Carl Hetherington
<cth@carlh.net>
Thu, 10 Jan 2019 13:35:47 +0000
(13:35 +0000)
tools/dcpdiff.cc
patch
|
blob
|
history
diff --git
a/tools/dcpdiff.cc
b/tools/dcpdiff.cc
index af0e18548419a51a989d40f3b7a3c32b73a80398..5e0560a003d72a0dc94092cc93e5b920f49d66bf 100644
(file)
--- 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);
}