From b5ace64c272c6c8513e9e3632ae60d1d87180896 Mon Sep 17 00:00:00 2001 From: lgao4 Date: Mon, 30 Oct 2006 03:26:07 +0000 Subject: [PATCH] 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 --- EdkModulePkg/Core/Pei/Image/Image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2