diff options
author | Jeremy Allison <jra@samba.org> | 2001-04-08 20:22:39 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2001-04-08 20:22:39 +0000 |
commit | 94747b4639ed9b19f7d0fb896e43aa392a84989a (patch) | |
tree | 3c1c3b31502b008306c9e45c133e8add090674af /source/client/smbmnt.c | |
parent | d786191bc116c17a3f53a1c272d969942b7e5d25 (diff) | |
download | samba-94747b4639ed9b19f7d0fb896e43aa392a84989a.tar.gz samba-94747b4639ed9b19f7d0fb896e43aa392a84989a.tar.xz samba-94747b4639ed9b19f7d0fb896e43aa392a84989a.zip |
Got "medieval on our ass" about adding the -1 to slprintf.
Jeremy.
Diffstat (limited to 'source/client/smbmnt.c')
-rw-r--r-- | source/client/smbmnt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/client/smbmnt.c b/source/client/smbmnt.c index 209d50ab810..36248987b1e 100644 --- a/source/client/smbmnt.c +++ b/source/client/smbmnt.c @@ -160,7 +160,7 @@ do_mount(char *share_name, unsigned int flags, struct smb_mount_data *data) data2 = (char *) data; } - slprintf(opts, sizeof(opts), + slprintf(opts, sizeof(opts)-1, "version=7,uid=%d,gid=%d,file_mode=0%o,dir_mode=0%o,%s", data->uid, data->gid, data->file_mode, data->dir_mode,options); if (mount(share_name, ".", "smbfs", flags, data1) == 0) |