pkgsrc/misc/goffice0.6/patches/patch-goffice_utils_regutf8.c
dholland cb431c14be Merge wiz's build fixes for goffice0.8. Add pcre's bl3 to Makefile
(was previously only in the bl3 file, which pkglint justifiably
considers broken) and bump PKGREVISION to 16.
2012-05-10 04:43:53 +00:00

15 lines
490 B
C

$NetBSD: patch-goffice_utils_regutf8.c,v 1.1 2012/05/10 04:43:53 dholland Exp $
Replace call to obsolete function.
--- goffice/utils/regutf8.c~ 2008-07-08 09:54:59.000000000 +0000
+++ goffice/utils/regutf8.c
@@ -155,7 +155,7 @@ go_regcomp (GORegexp *gor, const char *p
default: return REG_BADPAT;
}
} else {
- gor->re_nsub = pcre_info (r, NULL, NULL);
+ pcre_fullinfo (r, NULL, PCRE_INFO_CAPTURECOUNT, &gor->re_nsub);
gor->nosub = (cflags & REG_NOSUB) != 0;
return 0;
}