diff options
| author | Xin LI <delphij@FreeBSD.org> | 2008-10-23 00:28:21 +0000 |
|---|---|---|
| committer | Xin LI <delphij@FreeBSD.org> | 2008-10-23 00:28:21 +0000 |
| commit | 53cd97406b3c4220adabd4ab3ed9dc6b67b711a1 (patch) | |
| tree | 8e8f838a3e11951543c64a4ac4fc1e482d16c3e2 /usr.sbin | |
| parent | ecce338eb46acfd751c6d31e86fca1cfb1d10211 (diff) | |
Notes
Diffstat (limited to 'usr.sbin')
| -rw-r--r-- | usr.sbin/nscd/nscdcli.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/nscd/nscdcli.c b/usr.sbin/nscd/nscdcli.c index c7a79316ac3b..3b6996d7afb1 100644 --- a/usr.sbin/nscd/nscdcli.c +++ b/usr.sbin/nscd/nscdcli.c @@ -187,7 +187,7 @@ open_nscd_connection__(struct nscd_connection_params const *params) client_socket = socket(PF_LOCAL, SOCK_STREAM, 0); client_address.sun_family = PF_LOCAL; - strncpy(client_address.sun_path, params->socket_path, + strlcpy(client_address.sun_path, params->socket_path, sizeof(client_address.sun_path)); client_address_len = sizeof(client_address.sun_family) + strlen(client_address.sun_path) + 1; |
