zfstream: use the correct buffer size

This commit is contained in:
ThorstenB
2012-11-08 00:04:48 +01:00
parent b70b81f4cc
commit 1c1c7dad7b
2 changed files with 2 additions and 2 deletions

View File

@@ -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;
}

View File

@@ -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: