diff options
author | Andrew Bartlett <abartlet@samba.org> | 2003-02-24 09:46:01 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2003-02-24 09:46:01 +0000 |
commit | 9c6d78c54c7f420903767f17659e9ce8d7002dbf (patch) | |
tree | bdd32cba14349a60d718c205e6dafa31d11218b0 /source3/msdfs | |
parent | 2295c0cf296090ed48d7e9bf47c4358de30eaec0 (diff) | |
download | samba-9c6d78c54c7f420903767f17659e9ce8d7002dbf.tar.gz samba-9c6d78c54c7f420903767f17659e9ce8d7002dbf.tar.bz2 samba-9c6d78c54c7f420903767f17659e9ce8d7002dbf.zip |
If it's a pstring, use pstrcpy().
(This used to be commit 34fb5f0b1a6281b3aa7782edb3fcb82cc4ec4877)
Diffstat (limited to 'source3/msdfs')
-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; |