提交 4d0b071d 编写于 作者: H heyanlong

strlen

上级 bd3b2a7e
......@@ -157,7 +157,7 @@ void sky_curl_exec_handler(INTERNAL_FUNCTION_PARAMETERS)
}
peer = (char *) emalloc(strlen(url_info->scheme) + 3 + strlen(url_info->host) + 7);
bzero(peer, strlen(strlen(url_info->scheme) + 3 + url_info->host) + 7);
bzero(peer, strlen(url_info->scheme) + 3 + strlen(url_info->host) + 7);
sprintf(peer, "%s://%s:%d", url_info->scheme, url_info->host, peer_port);
if (url_info->query) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册