diff options
Diffstat (limited to 'phrase-extract/extract-mixed-syntax/gzfilebuf.h')
-rw-r--r-- | phrase-extract/extract-mixed-syntax/gzfilebuf.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/phrase-extract/extract-mixed-syntax/gzfilebuf.h b/phrase-extract/extract-mixed-syntax/gzfilebuf.h index 4c818ddbb..e070da306 100644 --- a/phrase-extract/extract-mixed-syntax/gzfilebuf.h +++ b/phrase-extract/extract-mixed-syntax/gzfilebuf.h @@ -12,7 +12,8 @@ public: gzfilebuf(const char *filename) { _gzf = gzopen(filename, "rb"); if (!_gzf) - throw std::runtime_error("Could not open " + std::string(filename) + "."); setg (_buff+sizeof(int), // beginning of putback area + throw std::runtime_error("Could not open " + std::string(filename) + "."); + setg (_buff+sizeof(int), // beginning of putback area _buff+sizeof(int), // read position _buff+sizeof(int)); // end position } |