From 9d86448ab9d5febfc21a915c5b11a3188978b4db Mon Sep 17 00:00:00 2001 From: Henning Brauer Date: Tue, 8 Apr 2003 20:46:29 +0000 Subject: 2x trivial strcpy --- usr.sbin/httpd/src/modules/proxy/proxy_http.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/httpd/src/modules/proxy/proxy_http.c b/usr.sbin/httpd/src/modules/proxy/proxy_http.c index 4e450164994..6fc919916d2 100644 --- a/usr.sbin/httpd/src/modules/proxy/proxy_http.c +++ b/usr.sbin/httpd/src/modules/proxy/proxy_http.c @@ -368,7 +368,7 @@ int ap_proxy_http_handler(request_rec *r, cache_req *c, char *url, /* Create a "Via:" request header entry and merge it */ i = ap_get_server_port(r); if (ap_is_default_port(i, r)) { - strcpy(portstr, ""); + strlcpy(portstr, "", sizeof(portstr)); } else { ap_snprintf(portstr, sizeof portstr, ":%d", i); @@ -533,7 +533,7 @@ int ap_proxy_http_handler(request_rec *r, cache_req *c, char *url, /* Create a "Via:" response header entry and merge it */ i = ap_get_server_port(r); if (ap_is_default_port(i, r)) { - strcpy(portstr, ""); + strlcpy(portstr, "", sizeof(portstr)); } else { ap_snprintf(portstr, sizeof portstr, ":%d", i); -- cgit v1.2.3