tests: Use the right array size in tests.
authorJakub Hrozek <jakub.hrozek@gmail.com>
Tue, 21 Oct 2014 16:42:44 +0000 (18:42 +0200)
committerAndreas Schneider <asn@samba.org>
Thu, 23 Oct 2014 12:13:37 +0000 (14:13 +0200)
commite1486231cd4584c1c3b797457d3e0b9a5e0e1430
tree3f27294ff6a997dc941e567970bc671686c7878d
parentde4d1f40645d383fccce4693a1323744636b769a
tests: Use the right array size in tests.

Several unit tests used the wrong array size, which might cause buffer
overflows. This patch unifies on using sizeof(array) since all the
arrays are allocated on stack.

CID #68270
CID #68269
CID #68267
CID #68265

Signed-off-by: Jakub Hrozek <jakub.hrozek@gmail.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
tests/test_dns_fake.c
tests/test_res_query_search.c