eal: remove unnecessary null-termination in plugin path
authorBruce Richardson <bruce.richardson@intel.com>
Fri, 3 Jul 2020 10:23:29 +0000 (11:23 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 5 Jul 2020 19:32:40 +0000 (21:32 +0200)
commitefa75d61d26fdc2d9be19ccd3b3bcd0df0310138
treed5788b9e435e4d410172b7516c673798e05d8687
parent68b1f1cda5b46ab826aa83d39d9e5b473c5bdcce
eal: remove unnecessary null-termination in plugin path

Since strlcpy always null-terminates, and the buffer is zeroed before copy
anyway, there is no need to explicitly zero the end of the character
array, or to limit the bytes that strlcpy can write.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
lib/librte_eal/common/eal_common_options.c