summaryrefslogtreecommitdiff
path: root/source3/passdb
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-02-05 14:41:52 +0100
committerVolker Lendecke <vl@samba.org>2011-02-06 16:44:56 +0100
commit08f2a8562f67982f69f4bbf5b1034a42529ab226 (patch)
treee19927e8e22b6897a30b389eff8ef1b24b8679fd /source3/passdb
parent8af7400d553f9552df78ab4958da7536f15eddf2 (diff)
downloadsamba-08f2a8562f67982f69f4bbf5b1034a42529ab226.tar.gz
samba-08f2a8562f67982f69f4bbf5b1034a42529ab226.tar.bz2
samba-08f2a8562f67982f69f4bbf5b1034a42529ab226.zip
s3: Use strlcpy in pdb_ads_connect
Diffstat (limited to 'source3/passdb')
-rw-r--r--source3/passdb/pdb_ads.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/passdb/pdb_ads.c b/source3/passdb/pdb_ads.c
index 01f730eb20..7a299e5854 100644
--- a/source3/passdb/pdb_ads.c
+++ b/source3/passdb/pdb_ads.c
@@ -2206,8 +2206,8 @@ static NTSTATUS pdb_ads_connect(struct pdb_ads_state *state,
ZERO_STRUCT(state->socket_address);
state->socket_address.sun_family = AF_UNIX;
- strncpy(state->socket_address.sun_path, location,
- sizeof(state->socket_address.sun_path) - 1);
+ strlcpy(state->socket_address.sun_path, location,
+ sizeof(state->socket_address.sun_path));
ld = pdb_ads_ld(state);
if (ld == NULL) {