net/tap: allow full length names
authorStephen Hemminger <stephen@networkplumber.org>
Fri, 11 Jan 2019 20:35:15 +0000 (12:35 -0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 14 Jan 2019 16:44:29 +0000 (17:44 +0100)
commit12ad0b6572d0793d0dc100b32caec5a2859399ed
treea505eb440f930702831cab875765114b71ed046e
parent1d7490bc7cc96fb601e542d2287e5398201bb0f1
net/tap: allow full length names

The code for set_interface_name was incorrectly assuming that
space for null byte was necessary with snprintf/strlcpy.

Fixes: 02f96a0a82d1 ("net/tap: add TUN/TAP device PMD")
Cc: stable@dpdk.org
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by Keith Wiles <keith.wiles@intel.com>
drivers/net/tap/rte_eth_tap.c