[dpdk-dev] [PATCH] crypto: use snprintf return value correctly

Bruce Richardson bruce.richardson at intel.com
Wed Oct 11 11:58:00 CEST 2017


On Wed, Oct 11, 2017 at 11:25:40AM +0200, Tomasz Duszynski wrote:
> snprintf return value is the length of was encoded into destination
> array excluding '\0'. Thus return value equal to the length of the
> destination array or more means truncation.
> 
> This commit fixes improper use of the return value.
> 
> Signed-off-by: Tomasz Duszynski <tdu at semihalf.com>
> ---
Good catch.

Acked-by: Bruce Richardson <bruce.richardson at intel.com>



More information about the dev mailing list