summaryrefslogtreecommitdiffstats
path: root/buf.c
diff options
context:
space:
mode:
Diffstat (limited to 'buf.c')
-rw-r--r--buf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/buf.c b/buf.c
index ce196976..349f0870 100644
--- a/buf.c
+++ b/buf.c
@@ -937,7 +937,7 @@ static val buf_strm_seek(val stream, val offset, enum strm_whence whence)
if (minusp(npos))
uw_throwf(error_s, lit("~a: cannot seek to negative position ~s"),
- self, index, nao);
+ self, npos, nao);
s->pos = npos;
return t;