event/opdl: replace sprintf with snprintf
authorPallantla Poornima <pallantlax.poornima@intel.com>
Mon, 4 Feb 2019 07:18:02 +0000 (07:18 +0000)
committerJerin Jacob <jerinj@marvell.com>
Fri, 15 Mar 2019 05:46:50 +0000 (06:46 +0100)
commit57362ddf4262d0440ae1bddc6eaf69e9f94f9c85
treea8c3860623546ffeb5bda8737a164011357a6b79
parentc13b1ad719a4d2baccc96084ad7ec33a19c3460c
event/opdl: replace sprintf with snprintf

sprintf function is not secure as it doesn't check the length of string.
More secure function snprintf is used.

Fixes: 3c7f3dcfb0 ("event/opdl: add PMD main body and helper function")
Cc: stable@dpdk.org
Signed-off-by: Pallantla Poornima <pallantlax.poornima@intel.com>
drivers/event/opdl/opdl_evdev.c
drivers/event/opdl/opdl_evdev_xstats.c