summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Bus/Sd/SdDxe/SdDxe.c
diff options
context:
space:
mode:
Diffstat (limited to 'MdeModulePkg/Bus/Sd/SdDxe/SdDxe.c')
-rw-r--r--MdeModulePkg/Bus/Sd/SdDxe/SdDxe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/MdeModulePkg/Bus/Sd/SdDxe/SdDxe.c b/MdeModulePkg/Bus/Sd/SdDxe/SdDxe.c
index f657fb9c6e..7c70c60a50 100644
--- a/MdeModulePkg/Bus/Sd/SdDxe/SdDxe.c
+++ b/MdeModulePkg/Bus/Sd/SdDxe/SdDxe.c
@@ -161,7 +161,7 @@ GetSdModelName (
String[sizeof (Cid->OemId) + sizeof (Cid->ProductName)] = ' ';
CopyMem (String + sizeof (Cid->OemId) + sizeof (Cid->ProductName) + 1, Cid->ProductSerialNumber, sizeof (Cid->ProductSerialNumber));
- AsciiStrToUnicodeStr (String, Device->ModelName);
+ AsciiStrToUnicodeStrS (String, Device->ModelName, sizeof (Device->ModelName) / sizeof (Device->ModelName[0]));
return EFI_SUCCESS;
}