diff options
Diffstat (limited to 'EdkCompatibilityPkg/Foundation/Library/EfiCommonLib/ReportStatusCode.c')
-rw-r--r-- | EdkCompatibilityPkg/Foundation/Library/EfiCommonLib/ReportStatusCode.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/EdkCompatibilityPkg/Foundation/Library/EfiCommonLib/ReportStatusCode.c b/EdkCompatibilityPkg/Foundation/Library/EfiCommonLib/ReportStatusCode.c index 4a9fca82bc..49328e6ca2 100644 --- a/EdkCompatibilityPkg/Foundation/Library/EfiCommonLib/ReportStatusCode.c +++ b/EdkCompatibilityPkg/Foundation/Library/EfiCommonLib/ReportStatusCode.c @@ -196,7 +196,8 @@ Returns: // Make sure it will all fit in the passed in buffer
//
TotalSize = sizeof (EFI_STATUS_CODE_DATA) + sizeof (EFI_DEBUG_ASSERT_DATA);
- TotalSize += EfiAsciiStrLen (Filename) + EfiAsciiStrLen (Description);
+ TotalSize += EfiAsciiStrLen (Filename);
+ TotalSize += EfiAsciiStrLen (Description);
if (TotalSize > BufferSize) {
return EFI_BUFFER_TOO_SMALL;
}
|