X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/22ed7a5295f196fce32563f6e9c669110dd36f4d..e2e0f812212b81ac029f90b57c63ee88455f6a12:/src/src/exim.c diff --git a/src/src/exim.c b/src/src/exim.c index 27f1e9b88..833045018 100644 --- a/src/src/exim.c +++ b/src/src/exim.c @@ -150,12 +150,8 @@ pcre_mtc_ctx = pcre2_match_context_create(pcre_gen_ctx); *************************************************/ /* This function runs a regular expression match, and sets up the pointers to -the matched substrings. The matched strings are copied. - -We might consider tracing the uses of expand_nstring to see if consitification -is viable, and save the copy cost by just using the pointers into the subject string. -Pre-pcre2 we did that without noticing, so it might just work - or might have been -a bug. It was certainly a risk in the implemenation. +the matched substrings. The matched strings are copied so the lifetime of +the subject is not a problem. Arguments: re the compiled expression @@ -1247,7 +1243,7 @@ show_db_version(fp); uschar buf[24]; pcre2_config(PCRE2_CONFIG_VERSION, buf); fprintf(fp, "Library version: PCRE2: Compile: %d.%d%s\n" - " Runtime: %s\n", + " Runtime: %s\n", PCRE2_MAJOR, PCRE2_MINOR, EXPAND_AND_QUOTE(PCRE2_PRERELEASE) "", buf);