]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Fix one bugger in Image.c in PeiCore module to get the correct module name for debug...
authorlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 30 Oct 2006 03:26:07 +0000 (03:26 +0000)
committerlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 30 Oct 2006 03:26:07 +0000 (03:26 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1852 6f19259b-4bc3-4df7-8a09-765794883524

EdkModulePkg/Core/Pei/Image/Image.c

index 6a26bb2ab41787e9581f1fb72344f491e21e471c..377a0d918d32604a071891f8c521a9e3cab5c270 100644 (file)
@@ -227,7 +227,7 @@ Returns:
             }\r
             if (AsciiString != NULL) {\r
               FileNameFound = FALSE;\r
-              for (Index = 0, Index1 = 0; (AsciiString[Index] != 0) && (Index < sizeof (AsciiString)); Index++) {\r
+              for (Index = 0, Index1 = 0; AsciiString[Index] != '\0'; Index++) {\r
                 if (AsciiString[Index] == '\\') {\r
                   Index1 = Index;\r
                   FileNameFound = TRUE;\r