1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

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
This commit is contained in:
Volker Lendecke 2014-09-07 21:09:32 +02:00
parent 815fdb493b
commit abe499be56

View File

@ -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;