summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-02-24 09:46:01 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-02-24 09:46:01 +0000
commit34fb5f0b1a6281b3aa7782edb3fcb82cc4ec4877 (patch)
tree400386dab96c4b0fc6ea6b30b5a549996c2db667
parentaa486355e282b891b299d63cc07431f32213b1b8 (diff)
downloadsamba-34fb5f0b1a6281b3aa7782edb3fcb82cc4ec4877.tar.gz
samba-34fb5f0b1a6281b3aa7782edb3fcb82cc4ec4877.tar.xz
samba-34fb5f0b1a6281b3aa7782edb3fcb82cc4ec4877.zip
If it's a pstring, use pstrcpy().
-rw-r--r--source/msdfs/msdfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/msdfs/msdfs.c b/source/msdfs/msdfs.c
index 4df31450095..bf3b3cc2130 100644
--- a/source/msdfs/msdfs.c
+++ b/source/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;