commit | 7275d5c2ff5e53d22f9cf4c44cbe702b0c396cd2 | [log] [tgz] |
---|---|---|
author | Jeremy Kerr <jk@ozlabs.org> | Thu Mar 03 15:30:10 2016 +0800 |
committer | Jeremy Kerr <jk@ozlabs.org> | Thu Mar 03 15:30:10 2016 +0800 |
tree | e42eeb458176157e7eeb08f079141ab595d04c31 | |
parent | 71f385b423d756e0a9e7dde1e72ad0500dcd233e [diff] |
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>