]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/Network/UefiPxeBcDxe/PxeBcMtftp.h
Append the terminating null character at the end of the string to avoid buffer overflow.
[mirror_edk2.git] / MdeModulePkg / Universal / Network / UefiPxeBcDxe / PxeBcMtftp.h
index 4d795a239d179534acd2d7907853fb1f6e38090b..9920aff8b01a1c0cdb74eef03feb1704df29e53d 100644 (file)
@@ -1,8 +1,8 @@
 /** @file\r
   Mtftp routines for PxeBc.\r
     \r
-Copyright (c) 2007 - 2009, Intel Corporation.<BR>\r
-All rights reserved. This program and the accompanying materials\r
+Copyright (c) 2007 - 2014, Intel Corporation. All rights reserved.<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
@@ -21,6 +21,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #define PXE_MTFTP_OPTION_MULTICAST_INDEX 3\r
 #define PXE_MTFTP_OPTION_MAXIMUM_INDEX   4\r
 \r
+#define PXE_MTFTP_ERROR_STRING_LENGTH    127\r
+\r
 \r
 /**\r
   This function is to get size of a file by Tftp.\r