From d5955a904dfb4242634b3f9269bacf9bfa073e5e Mon Sep 17 00:00:00 2001 From: Qing Huang Date: Mon, 16 Aug 2010 00:41:48 +0000 Subject: [PATCH] Enlarge the buffer to contain file name. (based on FatPkg commit b65791b9cd034d3b222d2a0c9b071def9bbc7446) [jordan.l.justen@intel.com: Use script to relicense to 2-clause BSD] Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Acked-by: Mark Doran Acked-by: Laszlo Ersek --- FatPkg/EnhancedFatDxe/FileName.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FatPkg/EnhancedFatDxe/FileName.c b/FatPkg/EnhancedFatDxe/FileName.c index 4f73e9ef90..09690fb076 100644 --- a/FatPkg/EnhancedFatDxe/FileName.c +++ b/FatPkg/EnhancedFatDxe/FileName.c @@ -299,7 +299,7 @@ Returns: --*/ { - CHAR16 Buffer[FAT_MAIN_NAME_LEN + 1]; + CHAR16 Buffer[FAT_MAIN_NAME_LEN + 1 + FAT_EXTEND_NAME_LEN + 1]; UINT8 OutCaseFlag; ASSERT (StrSize (Str) <= sizeof (Buffer));