torture: allow us to correctly use sizeof(buf) in raw.open tests
commite93affbe1b4ff32858988bde79d00cdc82729089
authorAndrew Bartlett <abartlet@samba.org>
Tue, 2 Sep 2014 02:28:04 +0000 (2 14:28 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 8 Sep 2014 05:26:34 +0000 (8 07:26 +0200)
treec557380158fc6fbbb07dfc04b2a4e8bb9e2c8491
parentcb25480e82cb2e0ef8793fd9c21d710208c822f3
torture: allow us to correctly use sizeof(buf) in raw.open tests

This changes the sizeof(buf) from sizeof(void *), 8 on 64-bit machines, to sizeof("test") (eg 5).

Found by AddressSanitizer

Andrew Bartlett

Change-Id: I01f18b35c041f3b16be9f6da8ae5d1917d7e24d9
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Kamen Mazdrashki <kamenim@samba.org>
source4/torture/raw/open.c