Revision: 17820 http://sourceforge.net/p/edk2/code/17820 Author: luobozhang Date: 2015-07-03 07:27:31 +0000 (Fri, 03 Jul 2015) Log Message: ----------- SecurityPkg: Calculate the length of the String.
When the two concatenated strings are both not null, the total length in bytes of them should calculate the character '\0' once. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Zhang Lubo <lubo.zh...@intel.com> Reviewed-by: jiaxinwu <jiaxin...@intel.com> Modified Paths: -------------- trunk/edk2/SecurityPkg/UserIdentification/UserProfileManagerDxe/UserProfileModify.c Modified: trunk/edk2/SecurityPkg/UserIdentification/UserProfileManagerDxe/UserProfileModify.c =================================================================== --- trunk/edk2/SecurityPkg/UserIdentification/UserProfileManagerDxe/UserProfileModify.c 2015-07-03 02:29:01 UTC (rev 17819) +++ trunk/edk2/SecurityPkg/UserIdentification/UserProfileManagerDxe/UserProfileModify.c 2015-07-03 07:27:31 UTC (rev 17820) @@ -338,7 +338,7 @@ StrLength = StrSize (Source2); } else { StrLength = StrSize (*Source1); - StrLength += StrSize (Source2) -1; + StrLength += StrSize (Source2) - 2; } TmpStr = AllocateZeroPool (StrLength); ------------------------------------------------------------------------------ Don't Limit Your Business. Reach for the Cloud. GigeNET's Cloud Solutions provide you with the tools and support that you need to offload your IT needs and focus on growing your business. Configured For All Businesses. Start Your Cloud Today. https://www.gigenetcloud.com/ _______________________________________________ edk2-commits mailing list edk2-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/edk2-commits