]> git.mxchange.org Git - simgear.git/commitdiff
zfstream: use the correct buffer size
authorThorstenB <brehmt@gmail.com>
Wed, 7 Nov 2012 23:04:48 +0000 (00:04 +0100)
committerThorstenB <brehmt@gmail.com>
Wed, 7 Nov 2012 23:04:48 +0000 (00:04 +0100)
simgear/misc/zfstream.cxx
simgear/misc/zfstream.hxx

index b5755625b2d900b231d742b3c4dd667e1f83b806..38a16ff2aa9998b127a5a0c05803e61b87388f8b 100644 (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;
 }
 
index 635397a71a084e61ba04c4fa65839d4191268599..5b391d207689deafbd3a7e9da8d983cac45f6465 100644 (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: