summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
de66e15)
It is the follow up of commits
51f0ceb..
9e32e97 to replace
AsciiValueToString/UnicodeValueToString with
AsciiValueToStringS/UnicodeValueToStringS.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
Parse the INI configuration file and pass the information to the recovery driver\r
so that the driver can perform recovery accordingly.\r
\r
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
\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, "Recovery");\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
Status = GetStringFromDataFile(\r
Context,\r
"Head",\r
Parse the INI configuration file and pass the information to the update driver\r
so that the driver can perform update accordingly.\r
\r
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
\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
// 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
Status = GetStringFromDataFile(\r
Context,\r
"Head",\r