]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
arm: ls1021a: Remove the inappropriate use of the function 'sprintf'
authorAlison Wang <b18965@freescale.com>
Mon, 11 May 2015 07:39:47 +0000 (15:39 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Wed, 9 Sep 2015 11:34:23 +0000 (13:34 +0200)
commit57f17c1d323675efb72fd17e817b10d7011b2f36
tree75cc441acc92f0e854d16840a947bce878664254
parent50f38aa2bf9d3f4be9c1f5228ec87b2db70e42a9
arm: ls1021a: Remove the inappropriate use of the function 'sprintf'

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@freescale.com>
Reviewed-by: Joe Hershberger <joe.hershberger@ni.com>
Reviewed-by: York Sun <yorksun@freescale.com>
arch/arm/cpu/armv7/ls102xa/fdt.c