projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
This commit was manufactured by cvs2svn to create branch 'R_1_4'.
[m6w6/ext-http]
/
http_url_api.c
diff --git
a/http_url_api.c
b/http_url_api.c
index 37c23cd6910f6b0e2dce4b64095fcc7d28e12f1f..1cd5bd472d95a99f6b28878d425debed9f3bed2f 100644
(file)
--- a/
http_url_api.c
+++ b/
http_url_api.c
@@
-306,9
+306,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[8]
= {0}
;
+ char port_str[8];
- snprintf(port_str,
len
of(port_str), "%d", (int) url->port);
+ snprintf(port_str,
size
of(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);
}