misc: fix possible strncpy truncation bug

Spotted by compiler warning:
../include/private/misc.h:93:9: warning: ‘strncpy’ output may be truncated copying 15 bytes from a string of length 15 [-Wstringop-truncation]
   93 |         strncpy(ifr.ifr_name, ifname, IFNAMSIZ - 1);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Use IFNAMSIZ size to fix this.

Signed-off-by: Jiri Pirko <jiri@nvidia.com>
1 file changed