From 110a23d2f06565204e509b60b0bc28d5ef61a2ae Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 15 Feb 2006 20:46:07 +0000 Subject: Added in.clear() before resetting I/Os streams. Again, thanks to the list. --- qif.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'qif.cc') diff --git a/qif.cc b/qif.cc index 52ed6d48..429bdcc9 100644 --- a/qif.cc +++ b/qif.cc @@ -30,6 +30,7 @@ bool qif_parser_t::test(std::istream& in) const char magic[sizeof(unsigned int) + 1]; in.read(magic, sizeof(unsigned int)); magic[sizeof(unsigned int)] = '\0'; + in.clear(); in.seekg(0, std::ios::beg); return (std::strcmp(magic, "!Typ") == 0 || -- cgit v1.2.3