]> mj.ucw.cz Git - libucw.git/blobdiff - lib/fb-mem.c
bugfix in area-based image scaling
[libucw.git] / lib / fb-mem.c
index daa807338301000882aa338cc5dc8ef1864619da..0de590e04fb90b19cca2c567f2c7c338d75b4180 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *     Sherlock Library -- Fast Buffered I/O on Memory Streams
+ *     UCW Library -- Fast Buffered I/O on Memory Streams
  *
  *     (c) 1997--2002 Martin Mares <mj@ucw.cz>
  *
@@ -10,8 +10,6 @@
 #include "lib/lib.h"
 #include "lib/fastbuf.h"
 
-#include <stdlib.h>
-
 struct memstream {
   unsigned blocksize;
   unsigned uc;
@@ -179,6 +177,7 @@ fbmem_clone_read(struct fastbuf *b)
   f->refill = fbmem_refill;
   f->seek = fbmem_seek;
   f->close = fbmem_close;
+  f->can_overwrite_buffer = 1;
   return f;
 }