]> git.sur5r.net Git - u-boot/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)
committerYork Sun <yorksun@freescale.com>
Mon, 20 Jul 2015 18:44:38 +0000 (11:44 -0700)
commit49a5e42a780dadf69fcac177143b0c8619ec467b
tree31a5b03518161aa33f9a39c473118a2aff4be5fc
parent97421bd2c010479504947a80b18f79d0485d6eb4
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