Skip to content

Commit 8067007

Browse files
committed
fix
1 parent 4523298 commit 8067007

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/async-process.lisp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,10 @@
9999
:for code := (cffi:mem-aref pointer :unsigned-char i)
100100
:until (zerop code)
101101
:collect code)))
102-
(map 'string 'code-char bytes))))
102+
(babel:octets-to-string
103+
(make-array (length bytes)
104+
:element-type '(unsigned-byte 8)
105+
:initial-contents bytes)))))
103106

104107
(defun process-receive-output (process)
105108
(let ((cffi:*default-foreign-encoding* (process-encode process)))

0 commit comments

Comments
 (0)