]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTools/VolInfo: Increase GUID base name string
authorKonstantin Aladyshev <aladyshev22@gmail.com>
Thu, 21 Jul 2022 13:11:48 +0000 (21:11 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Sun, 2 Oct 2022 05:34:38 +0000 (05:34 +0000)
The current string lenght (=60) is not enough for cases where basename
is a path to Build folder.
Drop custom define and use MAX_LINE_LEN from the BaseTools codebase
instead.

Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com>
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
Reviewed-by: Bob Feng <bob.c.feng@intel.com>
BaseTools/Source/C/VolInfo/VolInfo.c

index 4628e756d76051b562dee86868d187f4dc6f08cf..d9be3d8c1809f161c5ec48f2f3f441329ee90049 100644 (file)
@@ -51,15 +51,13 @@ EFI_GUID  gEfiCrc32GuidedSectionExtractionProtocolGuid = EFI_CRC32_GUIDED_SECTIO
 \r
 #define EFI_SECTION_ERROR EFIERR (100)\r
 \r
-#define MAX_BASENAME_LEN  60  // not good to hardcode, but let's be reasonable\r
-\r
 //\r
 // Structure to keep a list of guid-to-basenames\r
 //\r
 typedef struct _GUID_TO_BASENAME {\r
   struct _GUID_TO_BASENAME  *Next;\r
   INT8                      Guid[PRINTED_GUID_BUFFER_SIZE];\r
-  INT8                      BaseName[MAX_BASENAME_LEN];\r
+  INT8                      BaseName[MAX_LINE_LEN];\r
 } GUID_TO_BASENAME;\r
 \r
 static GUID_TO_BASENAME *mGuidBaseNameList = NULL;\r