app/crypto-perf: fix string not null terminated
authorAleksander Gajewski <aleksanderx.gajewski@intel.com>
Tue, 7 Feb 2017 09:20:18 +0000 (10:20 +0100)
committerPablo de Lara <pablo.de.lara.guarch@intel.com>
Fri, 10 Feb 2017 15:02:30 +0000 (16:02 +0100)
commit8ecd4048ba5d23c016df9a10225972bb78fd8044
treec71d956a6fa1f319eaf2b96837f762112b30b08b
parentb75a76d354d06723b3dfd82a0a4e9484081e59dd
app/crypto-perf: fix string not null terminated

This commit fixes the case where the string buffer may not have
a null terminator if the source string's length is equal to the
buffer size.

Coverity issue: 141069
Fixes: f8be1786b1b8 ("app/crypto-perf: introduce performance test application")

Signed-off-by: Aleksander Gajewski <aleksanderx.gajewski@intel.com>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
app/test-crypto-perf/cperf_options_parsing.c