2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-12-22 02:49:00 +00:00

Fix off-by-one error in --pages argument parsing (fixes #129)

This commit is contained in:
Jay Berkenbilt 2017-08-02 21:06:41 -04:00
parent 164c37b5a6
commit c88eaae2f2
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2017-08-02 Jay Berkenbilt <ejb@ql.org>
* Fix off-by-one error in parsing pages options. Fixes #129.
2017-07-29 Jay Berkenbilt <ejb@ql.org>
* Support @filename and @- in the qpdf command-line tool to read

View File

@ -855,7 +855,7 @@ parse_pages_options(
{
break;
}
if (cur_arg + 2 >= argc)
if (cur_arg + 1 >= argc)
{
usage("insufficient arguments to --pages");
}