]> mj.ucw.cz Git - libucw.git/blobdiff - ucw/fb-atomic.c
Opt: Introduced contexts
[libucw.git] / ucw / fb-atomic.c
index 8cee3087f96ae63644271a181b132f7da4152963..cd0217468279090b61ea69a19f816715254eecd9 100644 (file)
@@ -7,11 +7,11 @@
  *     of the GNU Lesser General Public License.
  */
 
-#include "ucw/lib.h"
-#include "ucw/fastbuf.h"
-#include "ucw/io.h"
-#include "ucw/conf.h"
-#include "ucw/trans.h"
+#include <ucw/lib.h>
+#include <ucw/fastbuf.h>
+#include <ucw/io.h>
+#include <ucw/conf.h>
+#include <ucw/trans.h>
 
 #include <string.h>
 #include <fcntl.h>
@@ -78,6 +78,7 @@ fbatomic_spout(struct fastbuf *f)
       f->buffer = xrealloc(f->buffer, size);
       f->bufend = f->buffer + size;
       f->bptr = f->buffer + written;
+      f->bstop = f->buffer;
       F->expected_max_bptr = f->bufend - F->slack_size;
     }
   else