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