diff options
author | lgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-10-30 03:26:07 +0000 |
---|---|---|
committer | lgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-10-30 03:26:07 +0000 |
commit | b5ace64c272c6c8513e9e3632ae60d1d87180896 (patch) | |
tree | 577eadb6bd5238df60e4dc6cc782c77100462ab6 /EdkModulePkg/Core | |
parent | 57046e97fa48e0d669634de0c111a7bfa94ce4c7 (diff) | |
download | edk2-platforms-b5ace64c272c6c8513e9e3632ae60d1d87180896.tar.xz |
Fix one bugger in Image.c in PeiCore module to get the correct module name for debug output.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1852 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'EdkModulePkg/Core')
-rw-r--r-- | EdkModulePkg/Core/Pei/Image/Image.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/EdkModulePkg/Core/Pei/Image/Image.c b/EdkModulePkg/Core/Pei/Image/Image.c index 6a26bb2ab4..377a0d918d 100644 --- a/EdkModulePkg/Core/Pei/Image/Image.c +++ b/EdkModulePkg/Core/Pei/Image/Image.c @@ -227,7 +227,7 @@ Returns: }
if (AsciiString != NULL) {
FileNameFound = FALSE;
- for (Index = 0, Index1 = 0; (AsciiString[Index] != 0) && (Index < sizeof (AsciiString)); Index++) {
+ for (Index = 0, Index1 = 0; AsciiString[Index] != '\0'; Index++) {
if (AsciiString[Index] == '\\') {
Index1 = Index;
FileNameFound = TRUE;
|