From d91cb87049db11a193bacec72506a24df19e46e9 Mon Sep 17 00:00:00 2001 From: Dandan Bi Date: Thu, 13 Aug 2015 00:15:06 +0000 Subject: MdeModulePkg:Use safe string functions in UiApp. Replace the unsafe string functions with the safe one in UiApp. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dandan Bi Reviewed-by: Qiu Shumin Reviewed-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18214 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Application/UiApp/DeviceMngr/DeviceManager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'MdeModulePkg/Application/UiApp/DeviceMngr/DeviceManager.c') diff --git a/MdeModulePkg/Application/UiApp/DeviceMngr/DeviceManager.c b/MdeModulePkg/Application/UiApp/DeviceMngr/DeviceManager.c index 0256500798..3fcc4c9521 100644 --- a/MdeModulePkg/Application/UiApp/DeviceMngr/DeviceManager.c +++ b/MdeModulePkg/Application/UiApp/DeviceMngr/DeviceManager.c @@ -172,7 +172,7 @@ GetMacAddressString( } *PBuffer = String; - StrCpy(String, L"MAC:"); + StrCpyS(String, BufferLen / sizeof (CHAR16), L"MAC:"); String += 4; // -- cgit v1.2.3