summaryrefslogtreecommitdiffstats
path: root/source4
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2014-09-07 21:09:32 +0200
committerVolker Lendecke <vl@samba.org>2014-09-08 16:41:51 +0200
commitabe499be569c9087f007331d3ac2e48cea0e2cae (patch)
tree22fdea42e53b2aa00a75a7782a34f7e9f9bd3df2 /source4
parent815fdb493b2cd3aaa43d01edf3678f1e08812a22 (diff)
downloadsamba-abe499be569c9087f007331d3ac2e48cea0e2cae.tar.gz
samba-abe499be569c9087f007331d3ac2e48cea0e2cae.tar.xz
samba-abe499be569c9087f007331d3ac2e48cea0e2cae.zip
torture: Correctly initialize array size
Bug: https://bugzilla.samba.org/show_bug.cgi?id=10800 Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Volker Lendecke <vl@samba.org> Autobuild-Date(master): Mon Sep 8 16:41:51 CEST 2014 on sn-devel-104
Diffstat (limited to 'source4')
-rw-r--r--source4/torture/smb2/dir.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/torture/smb2/dir.c b/source4/torture/smb2/dir.c
index 0e409f2b70..cf96fee157 100644
--- a/source4/torture/smb2/dir.c
+++ b/source4/torture/smb2/dir.c
@@ -895,7 +895,6 @@ static bool check_result(struct torture_context *tctx,
static bool test_modify_search(struct torture_context *tctx,
struct smb2_tree *tree)
{
- int num_files = 700;
struct multiple_result result;
union smb_setfileinfo sfinfo;
TALLOC_CTX *mem_ctx = talloc_new(tctx);
@@ -903,7 +902,8 @@ static bool test_modify_search(struct torture_context *tctx,
struct smb2_handle h;
struct smb2_find f;
union smb_search_data *d;
- struct file_elem files[702] = {};
+ struct file_elem files[703] = {};
+ int num_files = ARRAY_SIZE(files)-3;
NTSTATUS status;
bool ret = true;
int i;