From ad43ee6f5b9ff26c3c91163dea7909401efb02de Mon Sep 17 00:00:00 2001 From: John Terpstra Date: Tue, 10 Dec 2002 23:19:18 +0000 Subject: Updating changes from HEAD. (This used to be commit 20efb6252cd95fe9ce08298cfdd29d975a53f241) --- source3/client/smbumount.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- cgit