diff options
author | Takashi Sato <takashi@apache.org> | 2008-12-18 18:51:18 +0100 |
---|---|---|
committer | Takashi Sato <takashi@apache.org> | 2008-12-18 18:51:18 +0100 |
commit | f2cf8d6e5d2131bb31f6126f40c986020e1a711b (patch) | |
tree | a6d49053c70549b05fb656034adb9afc8e332b09 /modules/proxy/mod_proxy_fdpass.c | |
parent | Removing entry now that it is backported. (diff) | |
download | apache2-f2cf8d6e5d2131bb31f6126f40c986020e1a711b.tar.xz apache2-f2cf8d6e5d2131bb31f6126f40c986020e1a711b.zip |
Use apr_cpystrn instead of strncpy since strncpy can create an unterminated string.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@727777 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/proxy/mod_proxy_fdpass.c')
-rw-r--r-- | modules/proxy/mod_proxy_fdpass.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/proxy/mod_proxy_fdpass.c b/modules/proxy/mod_proxy_fdpass.c index a59d3c0ce1..cf66579d07 100644 --- a/modules/proxy/mod_proxy_fdpass.c +++ b/modules/proxy/mod_proxy_fdpass.c @@ -104,7 +104,7 @@ static apr_status_t get_socket_from_path(apr_pool_t *p, } sa.sun_family = AF_UNIX; - strncpy(sa.sun_path, path, sizeof(sa.sun_path)); + apr_cpystrn(sa.sun_path, path, sizeof(sa.sun_path)); rv = socket_connect_un(s, &sa); if (rv) { |