Commit 01bcda8974eb21e957eee9fdc90587f68f7c0a4f
1 parent
e3c9512b
fix PCRE calls to remove use of deprecated API
pcre_info -> pcre_fullinfo. Closes issue 3489349. Thanks Tim Harder.
Showing
1 changed file
with
1 additions
and
1 deletions
libqpdf/PCRE.cc
| @@ -144,7 +144,7 @@ PCRE::PCRE(char const* pattern, int options) | @@ -144,7 +144,7 @@ PCRE::PCRE(char const* pattern, int options) | ||
| 144 | this->code = pcre_compile(pattern, options, &errptr, &erroffset, 0); | 144 | this->code = pcre_compile(pattern, options, &errptr, &erroffset, 0); |
| 145 | if (this->code) | 145 | if (this->code) |
| 146 | { | 146 | { |
| 147 | - this->nbackrefs = pcre_info(this->code, 0, 0); | 147 | + pcre_fullinfo(this->code, 0, PCRE_INFO_CAPTURECOUNT, &(this->nbackrefs)); |
| 148 | } | 148 | } |
| 149 | else | 149 | else |
| 150 | { | 150 | { |