diff options
author | Jeremy Allison <jra@samba.org> | 2003-02-24 19:37:20 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2003-02-24 19:37:20 +0000 |
commit | b8fbb3189a8b55ddc87f9b52b1c00d1acbb37e72 (patch) | |
tree | 38f46ba89b1cec59e77d4185d365314d53ade20d | |
parent | 11c3fdbc5139cc6cef8c2dc12aa54b69baa7cc7d (diff) | |
download | samba-b8fbb3189a8b55ddc87f9b52b1c00d1acbb37e72.tar.gz samba-b8fbb3189a8b55ddc87f9b52b1c00d1acbb37e72.tar.bz2 samba-b8fbb3189a8b55ddc87f9b52b1c00d1acbb37e72.zip |
Merge from HEAD. Use pstrcpy not safe_strcpy.
Jeremy.
(This used to be commit 9634b1fba059228d436198629a5c7cf01fb6736c)
-rw-r--r-- | source3/msdfs/msdfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/msdfs/msdfs.c b/source3/msdfs/msdfs.c index 4df3145009..bf3b3cc213 100644 --- a/source3/msdfs/msdfs.c +++ b/source3/msdfs/msdfs.c @@ -266,7 +266,7 @@ static BOOL resolve_dfs_path(char* dfspath, struct dfs_path* dp, if (consumedcntp) { char *q; pstring buf; - safe_strcpy(buf, dfspath, sizeof(buf)); + pstrcpy(buf, dfspath); trim_string(buf, NULL, "\\"); q = strrchr(buf, '\\'); if (q) @@ -633,7 +633,7 @@ int setup_dfs_referral(char* pathname, int max_referral_level, char** ppdata) && pathnamep[1] == '\\') pathnamep++; - safe_strcpy(buf, pathnamep, sizeof(buf)); + pstrcpy(buf, pathnamep); if (!get_referred_path(buf, &junction, &consumedcnt, &self_referral)) return -1; |