git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b510e5e
)
torture: Fix array access in spoolss test.
author
Andreas Schneider
<asn@samba.org>
Tue, 19 Feb 2013 08:32:30 +0000
(09:32 +0100)
committer
Alexander Bokovoy
<ab@samba.org>
Fri, 22 Feb 2013 15:36:13 +0000
(16:36 +0100)
Reviewed-by: Alexander Bokovoy <ab@samba.org>
source4/torture/rpc/spoolss.c
patch
|
blob
|
history
diff --git
a/source4/torture/rpc/spoolss.c
b/source4/torture/rpc/spoolss.c
index f08e93bfaa52861d54d1be128c64d7cce916caeb..7d9ae9946592ccc1f86835f3b83c6d4177e7fccc 100644
(file)
--- 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;i<ARRAY_SIZE(levels);i++) {
int level = levels[i];
- for (j=0;j<ctx->driver_count[level];j++) {
- union spoolss_DriverInfo *cur = &ctx->drivers[level][j];
+ for (j=0;j<ctx->driver_count[level
- 1
];j++) {
+ union spoolss_DriverInfo *cur = &ctx->drivers[level
- 1
][j];
union spoolss_DriverInfo *ref = &ctx->drivers[8][j];
switch (level) {