net/i40e: fix unsecure usage of strncpy function
authorKirill Rybalchenko <kirill.rybalchenko@intel.com>
Tue, 24 Oct 2017 09:22:38 +0000 (10:22 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 26 Oct 2017 00:33:01 +0000 (02:33 +0200)
commit412f60a0e14ce51694489957b8ea9fa98d4b138f
tree43350613f6b5f9caf9781e7c08805a9cad0269c7
parent66c78f4799ff5021b749534cc35da2ae20f92397
net/i40e: fix unsecure usage of strncpy function

Use more secure snprintf function instead of strncpy
to prevent memory access violation.

Fixes: 40d1324423a4 ("net/i40e: get ddp profile protocol info")

Signed-off-by: Kirill Rybalchenko <kirill.rybalchenko@intel.com>
Reviewed-by: Bruce Richardson <bruce.richardson@intel.com>
drivers/net/i40e/rte_pmd_i40e.c