Updating changes from HEAD.
authorJohn Terpstra <jht@samba.org>
Tue, 10 Dec 2002 23:19:18 +0000 (23:19 +0000)
committerJohn Terpstra <jht@samba.org>
Tue, 10 Dec 2002 23:19:18 +0000 (23:19 +0000)
(This used to be commit 20efb6252cd95fe9ce08298cfdd29d975a53f241)

source3/client/smbumount.c

index 983ad44fa0f6619cfdf72877e54640f6d43cdb4b..9ea3083a6f992ab061a0329ba51dcf806cbdfdfa 100644 (file)
@@ -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;
 }