summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Whatson <whatson@gmail.com>2021-01-22 20:10:10 +1000
committerAndy Wingo <wingo@pobox.com>2021-03-12 22:11:58 +0100
commitf591ad28f1bcec67f17a123766f798d16bec5373 (patch)
tree361d3bdd070661830f4dc3373e365ed01e9cca60
parentbc50aff6f8b16db7b099daf6cdc192f4de7b5fe0 (diff)
downloadguile-f591ad28f1bcec67f17a123766f798d16bec5373.tar.gz
Fix suspendable implementation of 'get-bytevector-some!'
* module/ice-9/suspendable-ports.scm (get-bytevector-some!): Fix incorrect arguments to bytevector-copy!
-rw-r--r--module/ice-9/suspendable-ports.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/ice-9/suspendable-ports.scm b/module/ice-9/suspendable-ports.scm
index f5f005cca..a823f1d37 100644
--- a/module/ice-9/suspendable-ports.scm
+++ b/module/ice-9/suspendable-ports.scm
@@ -338,7 +338,7 @@
the-eof-object)
(let ((transfer-size (min count buffered)))
(bytevector-copy! (port-buffer-bytevector buf) cur
- transfer-size start buffered)
+ bv start transfer-size)
(set-port-buffer-cur! buf (+ cur transfer-size))
transfer-size))))))