From 236d54114c2a90c47d925891631301b15bf7b636 Mon Sep 17 00:00:00 2001 From: Philippe Verdy Date: Sun, 15 Aug 1999 23:52:37 +0000 Subject: [PATCH] make pcre test program compile again with Zeev's additions in the pcre_exec() function parameters --- ext/pcre/pcrelib/pcreposix.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ext/pcre/pcrelib/pcreposix.c b/ext/pcre/pcrelib/pcreposix.c index b3707012e4..514905bc22 100644 --- a/ext/pcre/pcrelib/pcreposix.c +++ b/ext/pcre/pcrelib/pcreposix.c @@ -223,8 +223,10 @@ if ((eflags & REG_NOTEOL) != 0) options |= PCRE_NOTEOL; preg->re_erroffset = (size_t)(-1); /* Only has meaning after compile */ -rc = pcre_exec(preg->re_pcre, NULL, string, (int)strlen(string), options, - (int *)pmatch, nmatch * 2); +rc = pcre_exec(preg->re_pcre, NULL, string, (int)strlen(string), + string, // const char *strbeg (added for vi-like 'g' replace flag) + options, (int *)pmatch, nmatch * 2, + 0); // int minlen (added for vi-like 'g' replace flag) if (rc == 0) return 0; /* All pmatch were filled in */ -- 2.40.0