mirror of
https://github.com/qpdf/qpdf.git
synced 2025-01-03 15:17:29 +00:00
fix PCRE calls to remove use of deprecated API
pcre_info -> pcre_fullinfo. Closes issue 3489349. Thanks Tim Harder.
This commit is contained in:
parent
e3c9512b25
commit
01bcda8974
@ -144,7 +144,7 @@ PCRE::PCRE(char const* pattern, int options)
|
|||||||
this->code = pcre_compile(pattern, options, &errptr, &erroffset, 0);
|
this->code = pcre_compile(pattern, options, &errptr, &erroffset, 0);
|
||||||
if (this->code)
|
if (this->code)
|
||||||
{
|
{
|
||||||
this->nbackrefs = pcre_info(this->code, 0, 0);
|
pcre_fullinfo(this->code, 0, PCRE_INFO_CAPTURECOUNT, &(this->nbackrefs));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user