From f20194149f848bd58b18a585c2ebdb25ed1d8cbf Mon Sep 17 00:00:00 2001 From: Andrei Zmievski Date: Sat, 10 Jun 2000 19:44:34 +0000 Subject: [PATCH] One more place. --- ext/pcre/php_pcre.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c index 174832e7c2..2ab781221c 100644 --- a/ext/pcre/php_pcre.c +++ b/ext/pcre/php_pcre.c @@ -739,6 +739,7 @@ char *php_pcre_replace(char *regex, int regex_len, /* stick that last bit of string on our output */ memcpy(&result[*result_len], piece, subject_len - start_offset); *result_len += subject_len - start_offset; + result[*result_len] = '\0'; break; } } -- 2.50.1