diff options
author | Andrew Bartlett <abartlet@samba.org> | 2003-03-14 10:02:12 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2003-03-14 10:02:12 +0000 |
commit | e37372f4d6e10204adf272f978524751420e890f (patch) | |
tree | c9ecdb8cce7b06b73191ae1e622bbc585e758d43 /source3/libsmb | |
parent | bc7f13cdb36212d0e2f9a8d86be9892a3c9dd373 (diff) | |
download | samba-e37372f4d6e10204adf272f978524751420e890f.tar.gz samba-e37372f4d6e10204adf272f978524751420e890f.tar.bz2 samba-e37372f4d6e10204adf272f978524751420e890f.zip |
Found by metze with the clobber-region check - if it's a pstring, use pstrcpy().
Andrew Bartlett
(This used to be commit f9c3c93f55cac774e576fd5975c0582e0b334d6a)
Diffstat (limited to 'source3/libsmb')
-rw-r--r-- | source3/libsmb/clifile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libsmb/clifile.c b/source3/libsmb/clifile.c index 8e84963c09..d86f36405d 100644 --- a/source3/libsmb/clifile.c +++ b/source3/libsmb/clifile.c @@ -948,7 +948,7 @@ BOOL cli_chkpath(struct cli_state *cli, const char *path) pstring path2; char *p; - safe_strcpy(path2,path,sizeof(pstring)); + pstrcpy(path2,path); trim_string(path2,NULL,"\\"); if (!*path2) *path2 = '\\'; |