Use better coding style.
authorYao, Jiewen <jiewen.yao@intel.com>
Fri, 19 Dec 2014 05:21:55 +0000 (05:21 +0000)
committerjyao1 <jyao1@Edk2>
Fri, 19 Dec 2014 05:21:55 +0000 (05:21 +0000)
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: "Yao, Jiewen" <jiewen.yao@intel.com>
Reviewed-by: "Qiu, Shumin" <shumin.qiu@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16540 6f19259b-4bc3-4df7-8a09-765794883524

SecurityPkg/Library/Tpm2CommandLib/Tpm2Session.c

index 2cbc627..f03b668 100644 (file)
@@ -99,7 +99,7 @@ Tpm2StartAuthSession (
   Buffer += Salt->size;\r
 \r
   *(TPM_SE *)Buffer = SessionType;\r
-  Buffer += sizeof(UINT8);\r
+  Buffer++;\r
 \r
   WriteUnaligned16 ((UINT16 *)Buffer, SwapBytes16 (Symmetric->algorithm));\r
   Buffer += sizeof(UINT16);\r