summaryrefslogtreecommitdiff
path: root/SecurityPkg
diff options
context:
space:
mode:
authorYao, Jiewen <jiewen.yao@intel.com>2014-12-19 05:21:55 +0000
committerjyao1 <jyao1@Edk2>2014-12-19 05:21:55 +0000
commit514556741981eb1353dbcffa04d46fdb945ffe7a (patch)
tree0b43d02bb7ac3eeae2ca13db3cbc491bcd2e8485 /SecurityPkg
parent3532030489e93e67703a3c3df53fd9dfdee68f97 (diff)
downloadedk2-platforms-514556741981eb1353dbcffa04d46fdb945ffe7a.tar.xz
Use better coding style.
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
Diffstat (limited to 'SecurityPkg')
-rw-r--r--SecurityPkg/Library/Tpm2CommandLib/Tpm2Session.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/SecurityPkg/Library/Tpm2CommandLib/Tpm2Session.c b/SecurityPkg/Library/Tpm2CommandLib/Tpm2Session.c
index 2cbc6272d0..f03b6689ac 100644
--- a/SecurityPkg/Library/Tpm2CommandLib/Tpm2Session.c
+++ b/SecurityPkg/Library/Tpm2CommandLib/Tpm2Session.c
@@ -99,7 +99,7 @@ Tpm2StartAuthSession (
Buffer += Salt->size;
*(TPM_SE *)Buffer = SessionType;
- Buffer += sizeof(UINT8);
+ Buffer++;
WriteUnaligned16 ((UINT16 *)Buffer, SwapBytes16 (Symmetric->algorithm));
Buffer += sizeof(UINT16);