Fix klocwork issues: change StrCpy() to StrCpyS()
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Guo Mang <[email protected]>
Reviewed-by: David Wei <[email protected]>
---
.../Common/Application/FirmwareUpdate/FirmwareUpdate.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/Platform/BroxtonPlatformPkg/Common/Application/FirmwareUpdate/FirmwareUpdate.c
b/Platform/BroxtonPlatformPkg/Common/Application/FirmwareUpdate/FirmwareUpdate.c
index b374b98..3a80ed5 100644
---
a/Platform/BroxtonPlatformPkg/Common/Application/FirmwareUpdate/FirmwareUpdate.c
+++
b/Platform/BroxtonPlatformPkg/Common/Application/FirmwareUpdate/FirmwareUpdate.c
@@ -1,6 +1,6 @@
/** @file
-Copyright (c) 2007 - 2017, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials are licensed and made available
under
the terms and conditions of the BSD License that accompanies this
distribution.
@@ -287,7 +287,7 @@ ParseCommandLine (
PrintToken (STRING_TOKEN (STR_FWUPDATE_PATH_ERROR), HiiHandle,
Argv[Index]);
return EFI_INVALID_PARAMETER;
}
- StrCpy (mInputData.FileName, Argv[Index]);
+ StrCpyS (mInputData.FileName,sizeof (mInputData.FileName) / sizeof
(CHAR16), Argv[Index]);
mInputData.UpdateFromFile = TRUE;
}
}
--
2.10.1.windows.1
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.01.org/mailman/listinfo/edk2-devel