\r
Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved.<BR>\r
(C) Copyright 2016 Hewlett Packard Enterprise Development LP<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
- 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
CHAR8 *FieldName;\r
CHAR8 *FieldValue;\r
UINTN Index;\r
+ UINTN HttpBufferSize;\r
\r
Status = EFI_SUCCESS;\r
TempHttpMessage = NULL;\r
return EFI_INVALID_PARAMETER;\r
}\r
\r
- TempHttpMessage = AllocateZeroPool (HttpMessageSize);\r
+ //\r
+ // Append the http response string along with a Null-terminator.\r
+ //\r
+ HttpBufferSize = HttpMessageSize + 1;\r
+ TempHttpMessage = AllocatePool (HttpBufferSize);\r
if (TempHttpMessage == NULL) {\r
return EFI_OUT_OF_RESOURCES;\r
}\r
\r
CopyMem (TempHttpMessage, HttpMessage, HttpMessageSize);\r
+ *(TempHttpMessage + HttpMessageSize) = '\0';\r
\r
//\r
// Get header number\r