]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Source/TianoTools/GenDepex/GenDepex.c
Added code to clear "Buffer" before using it. This is supposed to fix the odd issue...
[mirror_edk2.git] / Tools / Source / TianoTools / GenDepex / GenDepex.c
index 608e27ecb50290ec8d5cff37bcb6bc192ac9b466..3818649330555051e951ae5883c11833d6b76d13 100644 (file)
@@ -209,7 +209,7 @@ EFI_STATUS
 GenerateDependencyExpression (\r
   IN     FILE           *InFile,\r
   IN OUT FILE           *OutFile,\r
-  IN     UINT8          Padding  OPTIONAL\r
+  IN     INT8           Padding  OPTIONAL\r
   )\r
 /*++\r
 \r
@@ -374,6 +374,7 @@ Returns:
     return EFI_ABORTED;\r
   }\r
 \r
+  memset (Buffer, 0, FileSize + BUFFER_SIZE);\r
   fread (Buffer, FileSize, 1, InFile);\r
 \r
   Ptrx    = Buffer;\r
@@ -728,11 +729,11 @@ Returns:
         Ptrx++;\r
       }\r
 \r
-         Ptrx++;\r
+    Ptrx++;\r
       while (*Ptrx != '}') {\r
         Ptrx++;\r
       }\r
-         //\r
+    //\r
       // Absorb the closing }\r
       //\r
       Ptrx++;\r
@@ -854,16 +855,6 @@ Returns:
   Output_Flag = FALSE;\r
   Pad_Flag    = FALSE;\r
 \r
-  //\r
-  //  Output the calling arguments\r
-  //\r
-  printf ("\n\n");\r
-  for (Index = 0; Index < argc; Index++) {\r
-    printf ("%s ", argv[Index]);\r
-  }\r
-\r
-  printf ("\n\n");\r
-\r
   if (argc < 5) {\r
     printf ("Not enough arguments\n");\r
     PrintGenDepexUsageInfo ();\r