projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
- release .24.1
[m6w6/ext-http]
/
http_url_api.c
diff --git
a/http_url_api.c
b/http_url_api.c
index 5b618a3645bca1da82f9fc4b480eca41120f1aec..cac64ec81ee880812cb10e186169363b50252855 100644
(file)
--- a/
http_url_api.c
+++ b/
http_url_api.c
@@
-276,9
+276,9
@@
PHP_HTTP_API void _http_build_url(int flags, const php_url *old_url, const php_u
strlcat(*url_str, url->host, HTTP_URL_MAXLEN);
if (url->port) {
strlcat(*url_str, url->host, HTTP_URL_MAXLEN);
if (url->port) {
- char port_str[
6
] = {0};
+ char port_str[
8
] = {0};
- snprintf(port_str,
5
, "%d", (int) url->port);
+ snprintf(port_str,
lenof(port_str)
, "%d", (int) url->port);
strlcat(*url_str, ":", HTTP_URL_MAXLEN);
strlcat(*url_str, port_str, HTTP_URL_MAXLEN);
}
strlcat(*url_str, ":", HTTP_URL_MAXLEN);
strlcat(*url_str, port_str, HTTP_URL_MAXLEN);
}