mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
Merge from HEAD. Use pstrcpy not safe_strcpy.
Jeremy.
(This used to be commit 9634b1fba0
)
This commit is contained in:
parent
11c3fdbc51
commit
b8fbb3189a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user