From aff301d9ebc4f5c1be059838a8a6ef6b38129f88 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 19 Feb 2013 09:32:30 +0100 Subject: torture: Fix array access in spoolss test. Reviewed-by: Alexander Bokovoy --- source4/torture/rpc/spoolss.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4/torture/rpc') diff --git a/source4/torture/rpc/spoolss.c b/source4/torture/rpc/spoolss.c index f08e93bfaa..7d9ae99465 100644 --- a/source4/torture/rpc/spoolss.c +++ b/source4/torture/rpc/spoolss.c @@ -679,8 +679,8 @@ static bool test_EnumPrinterDrivers(struct torture_context *tctx, for (i=0;idriver_count[level];j++) { - union spoolss_DriverInfo *cur = &ctx->drivers[level][j]; + for (j=0;jdriver_count[level - 1];j++) { + union spoolss_DriverInfo *cur = &ctx->drivers[level - 1][j]; union spoolss_DriverInfo *ref = &ctx->drivers[8][j]; switch (level) { -- cgit