Hi Roland,

Roland Rosenfeld wrote:
> Oh, now I see the problem: pcre_copy_substring() returns the length of
> the string on match, while pcre2_substring_copy_bynumber() returns 0
> on success.  So the above has to be changed from "> 0" to "== 0".

Of course...  Many thanks for finding and fixing my mistakes!

> For showgraph.c this fixes the issue, but there are more places where
> the return code of pcre2_substring_copy_bynumber() is checked, which
> also may need adoption.  I found the following places:

Right, thanks again.  Have you found some other issues?  I tried to
trigger as much PCRE-related code as possible but as I'm not familiar
with this program I'm afraid I couldn't manage.

Reply via email to