summaryrefslogtreecommitdiffstats
path: root/MdePkg/Library/UefiDevicePathLib
diff options
context:
space:
mode:
authorStar Zeng <star.zeng@intel.com>2016-06-15 13:05:00 +0800
committerStar Zeng <star.zeng@intel.com>2016-06-21 12:46:23 +0800
commitca2ac9d521b595e969dbe65f1a19fd96d499fa61 (patch)
tree0c39f3c47fc3dc5a1f502ef72338abc4dcd2a410 /MdePkg/Library/UefiDevicePathLib
parente42602528f1f054a7b71c8c5a3f818aa05561112 (diff)
downloadedk2-ca2ac9d521b595e969dbe65f1a19fd96d499fa61.tar.gz
edk2-ca2ac9d521b595e969dbe65f1a19fd96d499fa61.tar.bz2
edk2-ca2ac9d521b595e969dbe65f1a19fd96d499fa61.zip
MdePkg: Replace UnicodeStrToAsciiStr() with UnicodeStrToAsciiStrS()
It is the follow up of 3ab41b7a325ca11a12b42f5ad1661c4b6791cb49 to replace UnicodeStrToAsciiStr/AsciiStrToUnicodeStr with UnicodeStrToAsciiStrS/AsciiStrToUnicodeStrS. Cc: Jiewen Yao <jiewen.yao@intel.com> Cc: Liming Gao <liming.gao@intel.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng <star.zeng@intel.com> Reviewed-by: Jaben Carsey <jaben.carsey@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com> Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
Diffstat (limited to 'MdePkg/Library/UefiDevicePathLib')
-rw-r--r--MdePkg/Library/UefiDevicePathLib/DevicePathFromText.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/MdePkg/Library/UefiDevicePathLib/DevicePathFromText.c b/MdePkg/Library/UefiDevicePathLib/DevicePathFromText.c
index 961ccb5489..c167b4ce03 100644
--- a/MdePkg/Library/UefiDevicePathLib/DevicePathFromText.c
+++ b/MdePkg/Library/UefiDevicePathLib/DevicePathFromText.c
@@ -1,7 +1,7 @@
/** @file
DevicePathFromText protocol as defined in the UEFI 2.0 specification.
-Copyright (c) 2013 - 2015, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2013 - 2016, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -2873,7 +2873,7 @@ DevPathFromTextWiFi (
DataLen = 32;
}
- UnicodeStrToAsciiStr (SSIdStr, AsciiStr);
+ UnicodeStrToAsciiStrS (SSIdStr, AsciiStr, sizeof (AsciiStr));
CopyMem (WiFiDp->SSId, AsciiStr, DataLen);
}