summaryrefslogtreecommitdiff
path: root/source3/client/smbumount.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/client/smbumount.c')
-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;
}