From 1c1c7dad7bd8929be55f93e2ca4a984716c9b41e Mon Sep 17 00:00:00 2001 From: ThorstenB Date: Thu, 8 Nov 2012 00:04:48 +0100 Subject: [PATCH] zfstream: use the correct buffer size --- simgear/misc/zfstream.cxx | 2 +- simgear/misc/zfstream.hxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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: -- 2.39.5