From: Volker Lendecke Date: Thu, 27 Nov 2014 20:44:18 +0000 (+0100) Subject: torture: Fix raw.open.chained-openx X-Git-Url: http://git.samba.org/?a=commitdiff_plain;h=574750777ad47d733a45a72e7da83297e3faa897;p=obnox%2Fsamba%2Fsamba-obnox.git torture: Fix raw.open.chained-openx sizeof(buf) is 5. On FreeBSD10/clang this overwrites "ret". Not good. Signed-off-by: Volker Lendecke Reviewed-by: Ralph Boehme Autobuild-User(master): Ralph Böhme Autobuild-Date(master): Fri Nov 28 13:30:18 CET 2014 on sn-devel-104 --- diff --git a/source4/torture/raw/open.c b/source4/torture/raw/open.c index 679a7c24f7e..616ba5c16ef 100644 --- a/source4/torture/raw/open.c +++ b/source4/torture/raw/open.c @@ -1386,8 +1386,8 @@ static bool test_chained(struct torture_context *tctx, struct smbcli_state *cli) io.openxreadx.in.timeout = 0; io.openxreadx.in.offset = 0; - io.openxreadx.in.mincnt = sizeof(buf); - io.openxreadx.in.maxcnt = sizeof(buf); + io.openxreadx.in.mincnt = sizeof(buf2); + io.openxreadx.in.maxcnt = sizeof(buf2); io.openxreadx.in.remaining = 0; io.openxreadx.out.data = (uint8_t *)buf2;