zfstream: use the correct buffer size
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user