diff options
author | Alison Wang <b18965@freescale.com> | 2015-05-11 15:39:47 +0800 |
---|---|---|
committer | York Sun <yorksun@freescale.com> | 2015-07-20 11:44:38 -0700 |
commit | 49a5e42a780dadf69fcac177143b0c8619ec467b (patch) | |
tree | 31a5b03518161aa33f9a39c473118a2aff4be5fc /drivers | |
parent | 97421bd2c010479504947a80b18f79d0485d6eb4 (diff) |
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>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions