From f9a15ce1a69f905e94db7650f0a4805720cd9c88 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Sun, 8 Apr 2001 20:22:39 +0000 Subject: Got "medieval on our ass" about adding the -1 to slprintf. Jeremy. (This used to be commit 94747b4639ed9b19f7d0fb896e43aa392a84989a) --- source3/client/smbmnt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/client/smbmnt.c') diff --git a/source3/client/smbmnt.c b/source3/client/smbmnt.c index 209d50ab81..36248987b1 100644 --- a/source3/client/smbmnt.c +++ b/source3/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) -- cgit