From 6e1e5405544724406f07344a5911298c3df44129 Mon Sep 17 00:00:00 2001 From: Feng Tian Date: Thu, 7 Aug 2014 08:54:34 +0000 Subject: 1) Add type cast for better coding style. 2) replace StrCpy() usage in Variable driver with StrnCpy(). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Feng Tian Reviewed-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15770 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptExecute.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'MdeModulePkg/Library/PiDxeS3BootScriptLib') diff --git a/MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptExecute.c b/MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptExecute.c index cba331a3bd..c32685984e 100644 --- a/MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptExecute.c +++ b/MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptExecute.c @@ -1,7 +1,7 @@ /** @file Interpret and execute the S3 data in S3 boot script. - Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.
+ Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions @@ -1312,7 +1312,7 @@ CheckAndOrMask ( switch (ScriptHeader->Width) { case S3BootScriptWidthUint8: - *AndMask = (UINT64) *(DataPtr + 1); + *AndMask = (UINT64) (*(UINT8*) (DataPtr + 1)); *OrMask = (UINT64) (*DataPtr); break; -- cgit v1.2.3