summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-03-14 10:02:12 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-03-14 10:02:12 +0000
commitf9c3c93f55cac774e576fd5975c0582e0b334d6a (patch)
tree92ed8cf3fd4b23c3a1d0af07dce18c9cfde9e810
parentdfee0a6ad5d203df04df8a54da87ff5e493a33ca (diff)
downloadsamba-f9c3c93f55cac774e576fd5975c0582e0b334d6a.tar.gz
samba-f9c3c93f55cac774e576fd5975c0582e0b334d6a.tar.xz
samba-f9c3c93f55cac774e576fd5975c0582e0b334d6a.zip
Found by metze with the clobber-region check - if it's a pstring, use pstrcpy().
Andrew Bartlett
-rw-r--r--source/libsmb/clifile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/libsmb/clifile.c b/source/libsmb/clifile.c
index 8e84963c094..d86f36405dd 100644
--- a/source/libsmb/clifile.c
+++ b/source/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 = '\\';