From 59d623dc66622e8d810ec4a403eecb87711bcfa3 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Tue, 12 Nov 2002 09:33:00 -0500 Subject: *** empty log message *** --- Tests/SystemInformation/DumpInformation.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Tests/SystemInformation/DumpInformation.cxx b/Tests/SystemInformation/DumpInformation.cxx index ab45228..bb5a649 100644 --- a/Tests/SystemInformation/DumpInformation.cxx +++ b/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; -- cgit v0.12