git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa48635
)
If it's a pstring, use pstrcpy().
author
Andrew Bartlett
<abartlet@samba.org>
Mon, 24 Feb 2003 09:46:01 +0000
(09:46 +0000)
committer
Andrew Bartlett
<abartlet@samba.org>
Mon, 24 Feb 2003 09:46:01 +0000
(09:46 +0000)
source/msdfs/msdfs.c
patch
|
blob
|
history
diff --git
a/source/msdfs/msdfs.c
b/source/msdfs/msdfs.c
index 4df31450095d261bd8fe756ae9d29daade84b9f1..bf3b3cc21302421a4c5b1b8ef2392a5f2c7abb5b 100644
(file)
--- 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;