[PATCH v2 02/17] common/mlx5: replace strncpy with strlcpy

Dariusz Sosnowski dsosnowski at nvidia.com
Tue Aug 25 14:20:07 CEST 2026


On Wed, Jun 24, 2026 at 11:36:41AM +0100, Bruce Richardson wrote:
> Replace strncpy() with safer strlcpy() which always null-terminates.
> 
> Fixes: aec086c9f1c8 ("common/mlx5: share kernel interface name getter")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Bruce Richardson <bruce.richardson at intel.com>

Acked-by: Dariusz Sosnowski <dsosnowski at nvidia.com>

I sent the previous ack on v1, sorry about that.


More information about the dev mailing list