]> git.proxmox.com Git - mirror_edk2.git/blobdiff - SecurityPkg/UserIdentification/UserProfileManagerDxe/UserProfileModify.c
SecurityPkg: Calculate the length of the String.
[mirror_edk2.git] / SecurityPkg / UserIdentification / UserProfileManagerDxe / UserProfileModify.c
index 67fc300f7257724e3273ad57e4f7d2ddfbd7aad1..a0eb4afa9edbed4677602d79cc8c53facb03e655 100644 (file)
@@ -338,7 +338,7 @@ AddStr (
     StrLength = StrSize (Source2);\r
   } else {\r
     StrLength  = StrSize (*Source1);\r
-    StrLength += StrSize (Source2) -1;\r
+    StrLength += StrSize (Source2) - 2;\r
   }\r
 \r
   TmpStr     = AllocateZeroPool (StrLength);\r