X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Ffb-buffer.c;h=b06088e0c3a028e6167a4f78a23887ecfd42cb31;hb=d1a5b69d490ce61a0f41db08263580487720bf2f;hp=8779ef323878df30c544f8eb1251dacc2c0f2ab2;hpb=809ba453f7d85d54349a8fc23da00fc6d09a56a1;p=libucw.git diff --git a/lib/fb-buffer.c b/lib/fb-buffer.c index 8779ef32..b06088e0 100644 --- a/lib/fb-buffer.c +++ b/lib/fb-buffer.c @@ -1,7 +1,7 @@ /* - * Sherlock Library -- Fast Buffered I/O on Static Buffers + * UCW Library -- Fast Buffered I/O on Static Buffers * - * (c) 2003 Martin Mares + * (c) 2003--2004 Martin Mares * * This software may be freely distributed and used according to the terms * of the GNU Lesser General Public License. @@ -17,7 +17,7 @@ fbbuf_refill(struct fastbuf *f UNUSED) } void -fbbuf_init_read(struct fastbuf *f, byte *buf, uns size) +fbbuf_init_read(struct fastbuf *f, byte *buf, uns size, uns can_overwrite) { f->buffer = f->bptr = buf; f->bstop = f->bufend = buf + size; @@ -28,7 +28,7 @@ fbbuf_init_read(struct fastbuf *f, byte *buf, uns size) f->seek = NULL; f->close = NULL; f->config = NULL; - f->can_overwrite_buffer = 1; + f->can_overwrite_buffer = can_overwrite; } static void