* of the GNU Lesser General Public License.
*/
-#include "ucw/lib.h"
-#include "ucw/fastbuf.h"
+#include <ucw/lib.h>
+#include <ucw/fastbuf.h>
#include <stdio.h>
#include <stdlib.h>
if (pos < 0 || pos > len)
bthrow(f, "seek", "Seek out of range");
f->bptr = f->buffer + pos;
- f->bstop = f->buffer;
- f->pos = 0;
+ f->bstop = f->bufend;
+ f->pos = len;
return 1;
}