configuration file and pass the information to the update driver\r
so that the driver can perform updates accordingly.\r
\r
- Copyright (c) 2002 - 2010, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2002 - 2015, Intel Corporation. All rights reserved.<BR>\r
\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions\r
UINT8 Digits[3];\r
\r
StrLen = AsciiStrLen ((CONST CHAR8 *) Str);\r
- Buffer = AllocatePool (StrLen + 1);\r
+ Buffer = AllocateCopyPool (StrLen + 1, Str);\r
if (Buffer == NULL) {\r
return EFI_OUT_OF_RESOURCES;\r
}\r
- AsciiStrCpy ((CHAR8 *)Buffer, (CHAR8 *)Str);\r
\r
//\r
// Data1\r
//\r
// Get the section name of each update\r
//\r
- AsciiStrCpy (Entry, "Update");\r
+ AsciiStrCpyS (Entry, MAX_LINE_LENGTH, "Update");\r
UpdateStrCatNumber ((UINT8 *) Entry, Index);\r
Value = NULL;\r
Status = UpdateGetProfileString (\r