summaryrefslogtreecommitdiffstats
path: root/FatPkg/EnhancedFatDxe
diff options
context:
space:
mode:
authorQing Huang <qing.huang@intel.com>2010-08-16 00:41:48 +0000
committerJordan Justen <jordan.l.justen@intel.com>2016-04-06 23:22:43 -0700
commitd5955a904dfb4242634b3f9269bacf9bfa073e5e (patch)
tree24688a12aab6b3bff94f64bd95a8cf368cde4e32 /FatPkg/EnhancedFatDxe
parent35053df36a6addced6d009addf985596719508f4 (diff)
downloadedk2-d5955a904dfb4242634b3f9269bacf9bfa073e5e.tar.gz
edk2-d5955a904dfb4242634b3f9269bacf9bfa073e5e.tar.bz2
edk2-d5955a904dfb4242634b3f9269bacf9bfa073e5e.zip
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 <jordan.l.justen@intel.com> Acked-by: Mark Doran <mark.doran@intel.com> Acked-by: Laszlo Ersek <lersek@redhat.com>
Diffstat (limited to 'FatPkg/EnhancedFatDxe')
-rw-r--r--FatPkg/EnhancedFatDxe/FileName.c2
1 files changed, 1 insertions, 1 deletions
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));