From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bruce Richardson Subject: Re: [PATCH] crypto: use snprintf return value correctly Date: Wed, 11 Oct 2017 10:58:00 +0100 Message-ID: <20171011095800.GA43968@bricha3-MOBL3.ger.corp.intel.com> References: <1507713940-12268-1-git-send-email-tdu@semihalf.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: dev@dpdk.org To: Tomasz Duszynski Return-path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 980EF378B for ; Wed, 11 Oct 2017 11:58:04 +0200 (CEST) Content-Disposition: inline In-Reply-To: <1507713940-12268-1-git-send-email-tdu@semihalf.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 > --- Good catch. Acked-by: Bruce Richardson