X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=src%2Fstrings.lisp;h=e4d67013a80a1db25ac52324fdf0ffe4993542bb;hb=7177cf1ffcd71227b04934ae09188dd708ae3bb9;hp=5fdbc89188037c2bc261cc60544e24289e1f2d88;hpb=6f1d4af6f8a21a3aa99e47495b7496025983708c;p=uffi.git diff --git a/src/strings.lisp b/src/strings.lisp index 5fdbc89..e4d6701 100644 --- a/src/strings.lisp +++ b/src/strings.lisp @@ -329,4 +329,4 @@ that LW/CMU automatically converts strings from c-calls." (let* ((len (or len (strlen s))) (str (make-string len))) (dotimes (i len str) - (setf (aref str i) (uffi:deref-array s '(:array :char) i))))) + (setf (schar str i) (code-char (uffi:deref-array s '(:array :byte) i))))))