103bb1cc29
Use sizeof dest rather than sizeof src for limiting copy length, and replace strncpy with snprintf to ensure NULL termination. Coverity issue: 127795 Fixes: 372c1af5ed8f ("net/ena: add dedicated memory area for extra device info") Signed-off-by: John W. Linville <linville@tuxdriver.com> Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>