public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [Patch][edk2-platforms/devel-IntelAtomProcessorE3900 2Change StrCpy() to StrCpyS()
@ 2018-08-23  5:32 Guo, Mang
  0 siblings, 0 replies; only message in thread
From: Guo, Mang @ 2018-08-23  5:32 UTC (permalink / raw)
  To: edk2-devel@lists.01.org

Fix klocwork issues: change StrCpy() to StrCpyS()

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Guo Mang <mang.guo@intel.com>
Reviewed-by:  David Wei <david.wei@intel.com>
---
 .../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



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2018-08-23  5:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-23  5:32 [Patch][edk2-platforms/devel-IntelAtomProcessorE3900 2Change StrCpy() to StrCpyS() Guo, Mang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox