]> git.proxmox.com Git - mirror_iproute2.git/commit
bridge: fix string length warning
authorStephen Hemminger <stephen@networkplumber.org>
Sun, 29 Nov 2020 17:32:50 +0000 (09:32 -0800)
committerStephen Hemminger <stephen@networkplumber.org>
Mon, 30 Nov 2020 00:20:16 +0000 (16:20 -0800)
commit5bdc4e9151a19f0bc8c851cfcca75363abb19fde
tree65d537e438f9867d07a061cd856abba976397ade
parentf8176999390f6d9cfbdb838871a318ff91c77702
bridge: fix string length warning

Gcc-10 complains about possible string length overflow.
This can't happen Ethernet address format is always limited to
18 characters or less. Just resize the temp buffer.

Fixes: 70dfb0b8836d ("iplink: bridge: export bridge_id and designated_root")
Cc: nikolay@cumulusnetworks.com
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
ip/iplink_bridge.c