From mboxrd@z Thu Jan 1 00:00:00 1970 From: York Sun Date: Mon, 20 Jul 2015 14:12:40 -0700 Subject: [U-Boot] [PATCH] arm: ls1021a: Remove the inappropriate use of the function 'sprintf' In-Reply-To: <1431329987-39182-1-git-send-email-b18965@freescale.com> References: <1431329987-39182-1-git-send-email-b18965@freescale.com> Message-ID: <55AD6448.6060403@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 05/11/2015 12:39 AM, Alison Wang wrote: > As the function 'sprintf' does not check buffer boundaries but outputs > to the buffer 'enet' of fixed size (16), this patch removes the function > 'sprintf', and uses 'strcpy' instead. It will assign the character > arrays 'enet' and 'phy' the corresponding character strings. > > Signed-off-by: Alison Wang > --- Applied to u-boot-fsl-qoriq master branch. York