diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2003-04-08 20:46:29 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2003-04-08 20:46:29 +0000 |
commit | 9d86448ab9d5febfc21a915c5b11a3188978b4db (patch) | |
tree | d89d2fb733bada68d8ab869aee5e4fc247c39e45 | |
parent | d22153cf1346d4982fcc6f824f8cabaaa4b7a836 (diff) |
2x trivial strcpy
-rw-r--r-- | usr.sbin/httpd/src/modules/proxy/proxy_http.c | 4 |
1 files 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); |