X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fcode%2Funix.lisp;h=0a25f7b6240ac08200ae3ebe4498119ec5823a60;hb=bf77540f53dbb693d87b9ff4fbfd09d3de7fb2d9;hp=a26a951d983b6ff85e4a16538705b4c60c620924;hpb=77d46c398278c0bbe221722c21c01d47713cd878;p=sbcl.git diff --git a/src/code/unix.lisp b/src/code/unix.lisp index a26a951..0a25f7b 100644 --- a/src/code/unix.lisp +++ b/src/code/unix.lisp @@ -114,7 +114,7 @@ SYSCALL-FORM. Repeat evaluation of SYSCALL-FORM if it is interrupted." #!-win32 (define-alien-routine ("getenv" posix-getenv) c-string "Return the \"value\" part of the environment string \"name=value\" which - corresponds to NAME, or NIL if there is none." +corresponds to NAME, or NIL if there is none." (name c-string)) ;;; from stdio.h @@ -190,7 +190,7 @@ SYSCALL-FORM. Repeat evaluation of SYSCALL-FORM if it is interrupted." (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))