]> granicus.if.org Git - php/commitdiff
One more place.
authorAndrei Zmievski <andrei@php.net>
Sat, 10 Jun 2000 19:44:34 +0000 (19:44 +0000)
committerAndrei Zmievski <andrei@php.net>
Sat, 10 Jun 2000 19:44:34 +0000 (19:44 +0000)
ext/pcre/php_pcre.c

index 174832e7c2926014e9564d060d86342317062c9e..2ab781221cfa1a03d393b2612be815294814c458 100644 (file)
@@ -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;
                        }
                }