Commit 49a5e42a authored by Committed by York Sun
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 <email@example.com> Reviewed-by: Joe Hershberger <firstname.lastname@example.org> Reviewed-by: York Sun <email@example.com>
Showing with 11 additions and 10 deletions