Parse the INI configuration file and pass the information to the update driver\r
so that the driver can perform update 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
// Get the section name of each update\r
//\r
AsciiStrCpyS (Entry, MAX_LINE_LENGTH, "Update");\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