summaryrefslogtreecommitdiff
path: root/appl/lib/bufio.b
diff options
context:
space:
mode:
authorforsyth <forsyth@vitanuova.com>2009-07-28 17:55:43 +0100
committerforsyth <forsyth@vitanuova.com>2009-07-28 17:55:43 +0100
commiteddf3bddae4e8afadafd4472f20a5fe829e15ef8 (patch)
tree98f0ff57e2cedee8808c79cfd116d873265e4f5c /appl/lib/bufio.b
parentc25d3f6db1487efc983a3301dadc677d4b1fdca2 (diff)
20090728-1755
Diffstat (limited to 'appl/lib/bufio.b')
-rw-r--r--appl/lib/bufio.b4
1 files changed, 3 insertions, 1 deletions
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;
}