Parse the INI configuration file and pass the information to the recovery driver\r
so that the driver can perform recovery accordingly.\r
\r
- Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2016 - 2017, 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
- of the BSD License which accompanies this distribution. The\r
- full text of the license may be found at\r
- http://opensource.org/licenses/bsd-license.php\r
-\r
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+ SPDX-License-Identifier: BSD-2-Clause-Patent\r
\r
**/\r
\r
// Get the section name of each update\r
//\r
AsciiStrCpyS (Entry, MAX_LINE_LENGTH, "Recovery");\r
- AsciiValueToString(Entry + AsciiStrLen(Entry), 0, Index, 0);\r
+ AsciiValueToStringS (\r
+ Entry + AsciiStrnLenS (Entry, MAX_LINE_LENGTH),\r
+ MAX_LINE_LENGTH - AsciiStrnLenS (Entry, MAX_LINE_LENGTH),\r
+ 0,\r
+ Index,\r
+ 0\r
+ );\r
Status = GetStringFromDataFile(\r
Context,\r
"Head",\r