Browse Source

*** empty log message ***

Bill Hoffman 23 years ago
parent
commit
59d623dc66
1 changed files with 5 additions and 1 deletions
  1. 5 1
      Tests/SystemInformation/DumpInformation.cxx

+ 5 - 1
Tests/SystemInformation/DumpInformation.cxx

@@ -11,7 +11,11 @@ int main(int, char*[])
     }
   while(!feof(file))
     {
-    putc(fgetc(file), stdout);
+    int ch = fgetc(file);
+    if(ch != EOF)
+      {
+      putc(ch, stdout);
+      }
     }
   fclose(file);
   return 0;