From: ThorstenB Date: Wed, 7 Nov 2012 23:04:48 +0000 (+0100) Subject: zfstream: use the correct buffer size X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1c1c7dad7bd8929be55f93e2ca4a984716c9b41e;p=simgear.git zfstream: use the correct buffer size --- diff --git a/simgear/misc/zfstream.cxx b/simgear/misc/zfstream.cxx index b5755625..38a16ff2 100644 --- a/simgear/misc/zfstream.cxx +++ b/simgear/misc/zfstream.cxx @@ -237,7 +237,7 @@ char gzfilebuf::allocate() { obuf_size = page_size / sizeof(char); - obuffer = new char [ibuf_size]; + obuffer = new char [obuf_size]; return 0; } diff --git a/simgear/misc/zfstream.hxx b/simgear/misc/zfstream.hxx index 635397a7..5b391d20 100644 --- a/simgear/misc/zfstream.hxx +++ b/simgear/misc/zfstream.hxx @@ -102,7 +102,7 @@ protected: virtual int_type overflow( int_type c = parent::traits_type::eof() ); bool out_waiting(); char* base() {return obuffer;} - int blen() {return ibuf_size;} + int blen() {return obuf_size;} char allocate(); private: