mirror of
https://github.com/qpdf/qpdf.git
synced 2024-06-04 11:20:53 +00:00
Fix off-by-one error in --pages argument parsing (fixes #129)
This commit is contained in:
parent
164c37b5a6
commit
c88eaae2f2
|
@ -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>
|
2017-07-29 Jay Berkenbilt <ejb@ql.org>
|
||||||
|
|
||||||
* Support @filename and @- in the qpdf command-line tool to read
|
* Support @filename and @- in the qpdf command-line tool to read
|
||||||
|
|
|
@ -855,7 +855,7 @@ parse_pages_options(
|
||||||
{
|
{
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (cur_arg + 2 >= argc)
|
if (cur_arg + 1 >= argc)
|
||||||
{
|
{
|
||||||
usage("insufficient arguments to --pages");
|
usage("insufficient arguments to --pages");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user