]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkModulePkg/Core/Pei/Image/Image.c
Fix one bugger in Image.c in PeiCore module to get the correct module name for debug...
[mirror_edk2.git] / 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