X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcode%2Funix.lisp;h=0a25f7b6240ac08200ae3ebe4498119ec5823a60;hb=67f787e86602efc7e4007fb6bbc970a2fcf613f5;hp=368665e758d386d8046ec8cd7a4f457baa540ba5;hpb=db770d287bb64a58967d08fdd8225c02cdd4d45a;p=sbcl.git diff --git a/src/code/unix.lisp b/src/code/unix.lisp index 368665e..0a25f7b 100644 --- a/src/code/unix.lisp +++ b/src/code/unix.lisp @@ -190,7 +190,7 @@ corresponds to NAME, or NIL if there is none." (defun sb-mkstemp (template-string mode) (declare (type string template-string) (type unix-file-mode mode)) - (let ((template-buffer (string-to-octets template-string))) + (let ((template-buffer (string-to-octets template-string :null-terminate t))) (with-pinned-objects (template-buffer) (let ((fd (alien-funcall (extern-alien "sb_mkstemp" (function int (* char) int))