Fixed off-by-one in php_parse_url.

This commit is contained in:
Stefan Esser 2004-05-28 11:33:23 +00:00
parent 27344aaed6
commit 2e3b9ec278

View File

@ -86,7 +86,7 @@ PHPAPI char *php_replace_controlchars(char *str)
PHPAPI php_url *php_url_parse(char const *str)
{
int length = strlen(str);
char port_buf[5];
char port_buf[6];
php_url *ret = ecalloc(1, sizeof(php_url));
char const *s, *e, *p, *pp, *ue;