Use strncpy when populating struct ifreq->ifr_name

We already check that ifname will fit into ifr_name in main(), but in
case do_ifreq gets called from elsewhere, use strncpy() instead of
strcpy().

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
1 file changed
tree: e42eeb458176157e7eeb08f079141ab595d04c31
  1. inarp.c
  2. Makefile