mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
Terminate the string with '\0'.
This commit is contained in:
parent
2ef880c048
commit
43793b94f7
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user