File xosview-1.8.0-irda.patch of Package xosview
--- linux/netmeter.cc +++ linux/netmeter.cc Fri Jul 19 13:12:52 2002 @@ -173,11 +173,21 @@ ifs.ignore(1024, ':'); ifs >> in >> ig >> ig >> ig >> ig >> ig >> ig >> ig >> out; - if (!ifs.eof()) + if (ifs.eof()) { - totin += in; - totout += out; + ifs.ignore(1024, '\n'); + break; } + + if (ifs.fail()) + { + ifs.clear(); + ifs.ignore(1024, '\n'); + continue; + } + + totin += in; + totout += out; ifs.ignore(1024, '\n'); }