torture: allow us to correctly use sizeof(buf) in raw.open tests
authorAndrew Bartlett <abartlet@samba.org>
Tue, 2 Sep 2014 02:28:04 +0000 (14:28 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Sun, 7 Sep 2014 23:14:53 +0000 (11:14 +1200)
commit09668cf28197bbcbd947c9952a9d992624bcf101
tree20a40bf5ddec5b3f532864aee24527e4d92b4297
parentd532c0f16fc920b0e01b7976d2c9441c000f7c17
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>
source4/torture/raw/open.c