diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2002-11-12 14:33:00 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2002-11-12 14:33:00 (GMT) |
commit | 59d623dc66622e8d810ec4a403eecb87711bcfa3 (patch) | |
tree | aa65edeed9ba9deb8539722b484f060be0706be5 /Tests/SystemInformation/DumpInformation.cxx | |
parent | 56d4bba75979e53ab64c420f9f2af2fa179ec2cc (diff) | |
download | CMake-59d623dc66622e8d810ec4a403eecb87711bcfa3.zip CMake-59d623dc66622e8d810ec4a403eecb87711bcfa3.tar.gz CMake-59d623dc66622e8d810ec4a403eecb87711bcfa3.tar.bz2 |
*** empty log message ***
Diffstat (limited to 'Tests/SystemInformation/DumpInformation.cxx')
-rw-r--r-- | Tests/SystemInformation/DumpInformation.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
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; |