diff --git a/src/cmp/cmpffi.lsp b/src/cmp/cmpffi.lsp index ea04f6245..fab4e86fa 100644 --- a/src/cmp/cmpffi.lsp +++ b/src/cmp/cmpffi.lsp @@ -381,6 +381,7 @@ (let ((ndx (position :cstring arg-types))) (when ndx (let* ((var (gensym)) + (arguments (copy-list arguments)) (value (elt arguments ndx))) (setf (elt arguments ndx) var (elt arg-types ndx) :char*)