git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1cee6e5
)
Updating changes from HEAD.
author
John Terpstra
<jht@samba.org>
Tue, 10 Dec 2002 23:19:18 +0000
(23:19 +0000)
committer
John 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
patch
|
blob
|
history
diff --git
a/source3/client/smbumount.c
b/source3/client/smbumount.c
index 983ad44fa0f6619cfdf72877e54640f6d43cdb4b..9ea3083a6f992ab061a0329ba51dcf806cbdfdfa 100644
(file)
--- 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;
}