numam-dpdk/examples/multi_process
Michael Santana f4be6a9a29 fix off-by-one errors in snprintf
snprintf guarantees to always correctly place a null terminator
in the buffer string. So manually placing a null terminator
in a buffer right after a call to snprintf is redundant code.

Additionally, there is no need to use 'sizeof(buffer) - 1' in snprintf as this
means we are not using the last character in the buffer. 'sizeof(buffer)' is
enough.

Cc: stable@dpdk.org

Signed-off-by: Michael Santana <msantana@redhat.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
2019-05-29 13:02:53 +02:00
..
client_server_mp fix off-by-one errors in snprintf 2019-05-29 13:02:53 +02:00
hotplug_mp eal: promote some experimental functions as stable 2019-04-21 19:11:37 +02:00
simple_mp replace snprintf with strlcpy without adding extra include 2019-04-04 22:45:54 +02:00
symmetric_mp examples: detect default build directory 2019-03-30 01:12:15 +01:00
Makefile examples: detect default build directory 2019-03-30 01:12:15 +01:00
meson.build examples: add empty meson files for unsupported ones 2018-04-17 16:09:43 +02:00