From mboxrd@z Thu Jan 1 00:00:00 1970 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) Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga105.jf.intel.com with ESMTP; 11 Oct 2017 02:58:03 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.43,360,1503385200"; d="scan'208";a="159249942" Received: from bricha3-mobl3.ger.corp.intel.com ([10.237.221.37]) by orsmga005.jf.intel.com with SMTP; 11 Oct 2017 02:58:01 -0700 Received: by (sSMTP sendmail emulation); Wed, 11 Oct 2017 10:58:00 +0100 Date: Wed, 11 Oct 2017 10:58:00 +0100 From: Bruce Richardson To: Tomasz Duszynski Cc: dev@dpdk.org 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 Content-Disposition: inline In-Reply-To: <1507713940-12268-1-git-send-email-tdu@semihalf.com> Organization: Intel Research and Development Ireland Ltd. User-Agent: Mutt/1.8.3 (2017-05-23) Subject: Re: [dpdk-dev] [PATCH] crypto: use snprintf return value correctly X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Oct 2017 09:58:05 -0000 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