Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 409779 | Differences between
and this patch

Collapse All | Expand All

(-)tf-50b8/src/macro.c (-1 / +1 lines)
Lines 893-899 Link Here
893
    }
893
    }
894
    spec->attr &= ~F_NONE;
894
    spec->attr &= ~F_NONE;
895
    if (spec->nsubattr) {
895
    if (spec->nsubattr) {
896
	int n = pcre_info(spec->trig.ri->re, NULL, NULL);
896
	int n = pcre_fullinfo(spec->trig.ri->re, NULL, 0, NULL);
897
	for (i = 0; i < spec->nsubattr; i++) {
897
	for (i = 0; i < spec->nsubattr; i++) {
898
	    spec->subattr[i].attr &= ~F_NONE;
898
	    spec->subattr[i].attr &= ~F_NONE;
899
	    if (spec->subattr[i].subexp > n) {
899
	    if (spec->subattr[i].subexp > n) {
(-)tf-50b8/src/pattern.c (-1 / +1 lines)
Lines 151-157 Link Here
151
	    emsg ? emsg : "unknown error");
151
	    emsg ? emsg : "unknown error");
152
	goto tf_reg_compile_error;
152
	goto tf_reg_compile_error;
153
    }
153
    }
154
    n = pcre_info(ri->re, NULL, NULL);
154
    n = pcre_fullinfo(ri->re, NULL, 0, NULL);
155
    if (n < 0) goto tf_reg_compile_error;
155
    if (n < 0) goto tf_reg_compile_error;
156
    ri->ovecsize = 3 * (n + 1);
156
    ri->ovecsize = 3 * (n + 1);
157
    ri->ovector = dmalloc(NULL, sizeof(int) * ri->ovecsize, file, line);
157
    ri->ovector = dmalloc(NULL, sizeof(int) * ri->ovecsize, file, line);
(-)tf-50b8/src/pattern.h (-1 / +1 lines)
Lines 10-16 Link Here
10
#ifndef PATTERN_H
10
#ifndef PATTERN_H
11
#define PATTERN_H
11
#define PATTERN_H
12
12
13
#include "pcre-2.08/pcre.h"
13
#include <pcre.h>
14
14
15
typedef struct RegInfo {
15
typedef struct RegInfo {
16
    pcre *re;
16
    pcre *re;

Return to bug 409779