diff options
author | Qing Huang <qing.huang@intel.com> | 2010-08-16 00:41:48 +0000 |
---|---|---|
committer | Jordan Justen <jordan.l.justen@intel.com> | 2016-04-06 23:22:43 -0700 |
commit | d5955a904dfb4242634b3f9269bacf9bfa073e5e (patch) | |
tree | 24688a12aab6b3bff94f64bd95a8cf368cde4e32 /FatPkg | |
parent | 35053df36a6addced6d009addf985596719508f4 (diff) | |
download | edk2-platforms-d5955a904dfb4242634b3f9269bacf9bfa073e5e.tar.xz |
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')
-rw-r--r-- | FatPkg/EnhancedFatDxe/FileName.c | 2 |
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));
|