summaryrefslogtreecommitdiffstats
path: root/BaseTools
diff options
context:
space:
mode:
authorKonstantin Aladyshev <aladyshev22@gmail.com>2022-07-21 21:11:48 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2022-10-02 05:34:38 +0000
commitc24328ca623866f2178c1cc004b50d41a3460fce (patch)
tree2a1378020387e52d75e391714374a52042bf55a1 /BaseTools
parent8be33c6544fae522e32c045ad81bac4d333dccb0 (diff)
downloadedk2-c24328ca623866f2178c1cc004b50d41a3460fce.tar.gz
edk2-c24328ca623866f2178c1cc004b50d41a3460fce.tar.bz2
edk2-c24328ca623866f2178c1cc004b50d41a3460fce.zip
BaseTools/VolInfo: Increase GUID base name string
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>
Diffstat (limited to 'BaseTools')
-rw-r--r--BaseTools/Source/C/VolInfo/VolInfo.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/BaseTools/Source/C/VolInfo/VolInfo.c b/BaseTools/Source/C/VolInfo/VolInfo.c
index 4628e756d7..d9be3d8c18 100644
--- a/BaseTools/Source/C/VolInfo/VolInfo.c
+++ b/BaseTools/Source/C/VolInfo/VolInfo.c
@@ -51,15 +51,13 @@ EFI_GUID gEfiCrc32GuidedSectionExtractionProtocolGuid = EFI_CRC32_GUIDED_SECTIO
#define EFI_SECTION_ERROR EFIERR (100)
-#define MAX_BASENAME_LEN 60 // not good to hardcode, but let's be reasonable
-
//
// Structure to keep a list of guid-to-basenames
//
typedef struct _GUID_TO_BASENAME {
struct _GUID_TO_BASENAME *Next;
INT8 Guid[PRINTED_GUID_BUFFER_SIZE];
- INT8 BaseName[MAX_BASENAME_LEN];
+ INT8 BaseName[MAX_LINE_LEN];
} GUID_TO_BASENAME;
static GUID_TO_BASENAME *mGuidBaseNameList = NULL;