- if (e)
- die("error studying pattern `%s': %s", av[0], e);
- pcre_fullinfo(n->rx, n->rx_study, PCRE_INFO_BACKREFMAX, &c);
- n->ovecsz = c * 2;
- n->ovec = xmalloc(n->ovecsz * sizeof(*n->ovec));
+ if (e) die("error studying pattern `%s': %s", av[0], e);
+ pcre_fullinfo(n->rx, n->rx_study, PCRE_INFO_CAPTURECOUNT, &c);
+ n->ovecsz = 2*c;
+ n->ovec = xmalloc(n->ovecsz*sizeof(*n->ovec));
+