]> git.proxmox.com Git - mirror_iproute2.git/commit
lnstat_util: Make sure buffer is NUL-terminated
authorPhil Sutter <phil@nwl.cc>
Fri, 1 Sep 2017 16:52:56 +0000 (18:52 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Fri, 1 Sep 2017 19:10:54 +0000 (12:10 -0700)
commitbc4a57b87990b30c85fdf0efbc1f8f219466daf4
treeca990345e97d9e60e19d4dcb3302f4c926d22dc4
parent9376314b49a47eb42ade3fc0d41cb51438f8dbc6
lnstat_util: Make sure buffer is NUL-terminated

Can't use strlcpy() here since lnstat is not linked against libutil.

While being at it, fix coding style in that chunk as well.

Signed-off-by: Phil Sutter <phil@nwl.cc>
misc/lnstat_util.c