]> granicus.if.org Git - php/commitdiff
Fixed off-by-one in php_parse_url.
authorStefan Esser <sesser@php.net>
Fri, 28 May 2004 11:33:23 +0000 (11:33 +0000)
committerStefan Esser <sesser@php.net>
Fri, 28 May 2004 11:33:23 +0000 (11:33 +0000)
ext/standard/url.c

index 1fbda1cf68b4529bf1d7fd41d7ee0bec64334b5d..aac6964c1c71418ca1c5888f9c66d6e02a6c4215 100644 (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;