summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Universal
diff options
context:
space:
mode:
authorQiu Shumin <shumin.qiu@intel.com>2015-07-01 08:32:29 +0000
committershenshushi <shenshushi@Edk2>2015-07-01 08:32:29 +0000
commit5e4b8bfe43530162ddcb498abb01e3326b6b7e97 (patch)
tree852e4959919438c3f301c47de302b75538264655 /MdeModulePkg/Universal
parent3860b1a2328a7562923c522e8eeef9f714e92370 (diff)
downloadedk2-platforms-5e4b8bfe43530162ddcb498abb01e3326b6b7e97.tar.xz
MdeModulePkg/Universal/SmbiosDxe: Use safe string functions to refine code.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin <shumin.qiu@intel.com> Reviewed-by: Star Zeng <star.zeng@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17788 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal')
-rw-r--r--MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.c b/MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.c
index 43d78a6a07..f29c47b7b4 100644
--- a/MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.c
+++ b/MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.c
@@ -665,7 +665,7 @@ SmbiosUpdateString (
//
TargetStrLen = AsciiStrLen(StrStart);
if (InputStrLen == TargetStrLen) {
- AsciiStrCpy(StrStart, String);
+ AsciiStrCpyS(StrStart, TargetStrLen + 1, String);
//
// Some UEFI drivers (such as network) need some information in SMBIOS table.
// Here we create SMBIOS table and publish it in