Terminate the string with '\0'.

This commit is contained in:
Andrei Zmievski 2000-06-10 19:43:20 +00:00
parent 2ef880c048
commit 43793b94f7

View File

@ -713,6 +713,7 @@ char *php_pcre_replace(char *regex, int regex_len,
} else {
*walkbuf++ = *walk++;
}
*walkbuf = '\0';
/* increment the result length by how much we've added to the string */
*result_len += walkbuf - (result + *result_len);
}