eof is not fail

This commit is contained in:
David Rose 2002-08-03 22:14:53 +00:00
parent 89528a5fc9
commit 38db3b62d2

View File

@ -67,7 +67,7 @@ read_file(Datagram &data) const {
data.add_int8(byte);
byte = in->get();
}
bool failed = in->fail();
bool failed = in->fail() && !in->eof();
delete in;
if (failed) {