numam-dpdk/app/proc-info
Ciara Power 7edbf7ddfd app/procinfo: use strlcpy for copying string
Replaced strncpy and strcpy with strlcpy.
Also replaced snprintf with strlcpy where applicable.
Using strlcpy is safe practice when copying strings, as it will include
a null terminator.

Fixes: 2deb6b5246 ("app/procinfo: add collectd format and host id")
Fixes: 8a37f37fc2 ("app/procinfo: add --show-port")
Cc: stable@dpdk.org

Reported-by: Reshma Pattan <reshma.pattan@intel.com>
Signed-off-by: Ciara Power <ciara.power@intel.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
2019-10-27 11:33:24 +01:00
..
main.c app/procinfo: use strlcpy for copying string 2019-10-27 11:33:24 +01:00
Makefile eal: promote some experimental functions as stable 2019-04-21 19:11:37 +02:00
meson.build eal: promote some experimental functions as stable 2019-04-21 19:11:37 +02:00