[U-Boot] [PATCH] arm: ls1021a: Remove the inappropriate use of the function 'sprintf'

Joe Hershberger joe.hershberger at gmail.com
Mon May 11 21:16:11 CEST 2015


On Mon, May 11, 2015 at 2:39 AM, Alison Wang <b18965 at freescale.com> 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 <alison.wang at freescale.com>
> ---

Reviewed-by: Joe Hershberger <joe.hershberger at ni.com>


More information about the U-Boot mailing list