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:
parent
469e0107e2
commit
7408f04605
@ -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],
|
||||
|
Loading…
Reference in New Issue
Block a user