From eddf3bddae4e8afadafd4472f20a5fe829e15ef8 Mon Sep 17 00:00:00 2001 From: forsyth Date: Tue, 28 Jul 2009 17:55:43 +0100 Subject: 20090728-1755 --- appl/lib/bufio.b | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'appl/lib') diff --git a/appl/lib/bufio.b b/appl/lib/bufio.b index e2ad8bae..4de90919 100644 --- a/appl/lib/bufio.b +++ b/appl/lib/bufio.b @@ -171,8 +171,10 @@ Iobuf.seek(b: self ref Iobuf, off: big, start: int): big return big ERROR; b.size = 0; b.index = 0; - if ((s := sys->seek(b.fd, off, start)) < big 0) + if ((s := sys->seek(b.fd, off, start)) < big 0) { + b.bufpos = b.filpos; return big ERROR; + } b.bufpos = b.filpos = s; return s; } -- cgit v1.2.3