]> git.proxmox.com Git - mirror_edk2.git/commit - MdePkg/Library/UefiLib/UefiLibPrint.c
MdePkg UefiLib: Fix wrong DestMax passed to StrCpyS()
authorHao Wu <hao.a.wu@intel.com>
Wed, 5 Aug 2015 02:55:40 +0000 (02:55 +0000)
committerhwu1225 <hwu1225@Edk2>
Wed, 5 Aug 2015 02:55:40 +0000 (02:55 +0000)
commita3f28ac92c6aa90e91e44d3993378dc38c66841e
tree902c52dd9a36e818117694807ae94e2552de6c5c
parentdba275689353e49617f60ebe85618f17e1774bfb
MdePkg UefiLib: Fix wrong DestMax passed to StrCpyS()

The second parameter 'DestMax' of StrCpyS() should be the number of
unicode characters, not the size in bytes.

Also, code is modified to keep align with the one in
IntelFrameworkPkg\Library\FrameworkUefiLib\UefiLibPrint.c.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18160 6f19259b-4bc3-4df7-8a09-765794883524
MdePkg/Library/UefiLib/UefiLibPrint.c