summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Terpstra <jht@samba.org>2002-12-10 23:19:18 +0000
committerJohn Terpstra <jht@samba.org>2002-12-10 23:19:18 +0000
commitad43ee6f5b9ff26c3c91163dea7909401efb02de (patch)
tree2d87b3928a7d50c8311cc27f0c6138c3539556ae
parent1cee6e571ee39ef917f2c8972f6a6d5d38074363 (diff)
downloadsamba-ad43ee6f5b9ff26c3c91163dea7909401efb02de.tar.gz
samba-ad43ee6f5b9ff26c3c91163dea7909401efb02de.tar.bz2
samba-ad43ee6f5b9ff26c3c91163dea7909401efb02de.zip
Updating changes from HEAD.
(This used to be commit 20efb6252cd95fe9ce08298cfdd29d975a53f241)
-rw-r--r--source3/client/smbumount.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/client/smbumount.c b/source3/client/smbumount.c
index 983ad44fa0..9ea3083a6f 100644
--- a/source3/client/smbumount.c
+++ b/source3/client/smbumount.c
@@ -90,7 +90,8 @@ canonicalize (char *path)
if (realpath (path, canonical))
return canonical;
- pstrcpy (canonical, path);
+ strncpy (canonical, path, PATH_MAX);
+ canonical[PATH_MAX] = '\0';
return canonical;
}