dhcpv6: fix strncpy bounds
authorHans Dedecker <dedeckeh@gmail.com>
Sat, 21 Apr 2018 11:40:29 +0000 (13:40 +0200)
committerHans Dedecker <dedeckeh@gmail.com>
Sat, 21 Apr 2018 11:45:04 +0000 (13:45 +0200)
commit327f73dd7093d04c2dbea13ee30fc3dfafc5e944
tree76825de3b8cf80ab5136766b289160799738a6a6
parent474b5a3a9a25f0aa12e69afd72d7661638ad879d
dhcpv6: fix strncpy bounds

Fixes dhcpv6.c:138:2: error: 'strncpy' specified bound 16 equals destination size [-Werror=stringop-truncation]                                                                                                        strncpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name));

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
src/dhcpv6.c