Index: src/StreamBuffer.h =================================================================== RCS file: /afs/psi.ch/user/z/zimoch/.cvsroot/StreamDevice2/src/StreamBuffer.h,v retrieving revision 1.6 diff -u -r1.6 StreamBuffer.h --- src/StreamBuffer.h 30 May 2007 12:50:47 -0000 1.6 +++ src/StreamBuffer.h 20 Feb 2008 09:04:29 -0000 @@ -29,11 +29,11 @@ class StreamBuffer { + char local[64]; long len; long cap; long offs; char* buffer; - char local[64]; void grow(long); void init(const void*, long); @@ -103,7 +103,7 @@ // reserve: reserve size bytes of memory and return // pointer to that memory (for copying something to it) char* reserve(long size) - {check(size); char* p=buffer+offs+len; len+=size; return p; } + {grow(size); char* p=buffer+len; len+=size; return p;} // append: append data at the end of the buffer StreamBuffer& append(char c)