]> git.proxmox.com Git - mirror_edk2.git/blobdiff - SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigMisc.c
SecurityPkg:Replace unsafe string functions.
[mirror_edk2.git] / SecurityPkg / VariableAuthenticated / SecureBootConfigDxe / SecureBootConfigMisc.c
index 13c7c2738751e97e484c831c38ff650acc36fecf..a83504e78734854e9f95787a4f6cc6008efbcc76 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Helper functions for SecureBoot configuration module.\r
 \r
-Copyright (c) 2012, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -184,7 +184,7 @@ StringToGuid (
     return EFI_OUT_OF_RESOURCES;\r
   }\r
 \r
-  StrCpy (Buffer, Str);\r
+  StrCpyS (Buffer, (StrLen + 1), Str);\r
 \r
   //\r
   // Data1\r