From 8d644deb1d3f1302c879ead7845ef0be674c99ec Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Mon, 4 Mar 2013 15:41:47 +0100 Subject: qa: fix bogus eror in test_api Use buf[32] as struct nfct_attr_grp_ipv6 is 32 bytes long. That fixes: == validate set grp API == ERROR: set/get operations don't match for attribute 2 (2 != 1) ERROR: set/get operations don't match for attribute 3 (3 != 1) ERROR: set/get operations don't match for attribute 8 (8 != 1) Shows up with gcc 4.7.1. Signed-off-by: Pablo Neira Ayuso --- qa/test_api.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qa/test_api.c b/qa/test_api.c index cdd128a..6811ea7 100644 --- a/qa/test_api.c +++ b/qa/test_api.c @@ -234,7 +234,7 @@ int main(void) printf("== test get grp API ==\n"); ret = fork(); if (ret == 0) { - char buf[16]; + char buf[32]; /* IPv6 group address is 16 bytes * 2 */ for (i=0; i