diff options
author | 2003-04-08 20:46:28 +0000 | |
---|---|---|
committer | 2003-04-08 20:46:28 +0000 | |
commit | 8236447f57dcd41636ddb04c610dad90b819a2c4 (patch) | |
tree | af7f7af7ce2ad00683dec3ac9ad44f276d8ff939 | |
parent | Use POSIX chown semantics (user:group); noted by Leandro Costa (diff) | |
download | wireguard-openbsd-8236447f57dcd41636ddb04c610dad90b819a2c4.tar.xz wireguard-openbsd-8236447f57dcd41636ddb04c610dad90b819a2c4.zip |
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); |