gluon-mesh-batman-adv: respondd: remove incorrect field width limits

At least the ifindex and the flags fields can be larger than 0xff.

Fixes #1523
This commit is contained in:
Matthias Schiffer 2018-09-01 11:11:17 +02:00
parent 469e0107e2
commit 7408f04605
No known key found for this signature in database
GPG Key ID: 16EF3F64CB201D9C

View File

@ -94,7 +94,7 @@ static struct json_object * get_addresses(void) {
if (sscanf(line,
"%2"SCNx8"%2"SCNx8"%2"SCNx8"%2"SCNx8"%2"SCNx8"%2"SCNx8"%2"SCNx8"%2"SCNx8
"%2"SCNx8"%2"SCNx8"%2"SCNx8"%2"SCNx8"%2"SCNx8"%2"SCNx8"%2"SCNx8"%2"SCNx8
" %*2x %*2x %*2x %2x %"STRINGIFY(IF_NAMESIZE)"s",
" %*x %*x %*x %x %"STRINGIFY(IF_NAMESIZE)"s",
&addr.s6_addr[0], &addr.s6_addr[1], &addr.s6_addr[2], &addr.s6_addr[3],
&addr.s6_addr[4], &addr.s6_addr[5], &addr.s6_addr[6], &addr.s6_addr[7],
&addr.s6_addr[8], &addr.s6_addr[9], &addr.s6_addr[10], &addr.s6_addr[11],