projects
/
sbcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
1.0.23.71: fix overlapping spaces on OpenBSD
[sbcl.git]
/
src
/
code
/
unix.lisp
diff --git
a/src/code/unix.lisp
b/src/code/unix.lisp
index
368665e
..
0a25f7b
100644
(file)
--- 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))
(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))
(with-pinned-objects (template-buffer)
(let ((fd (alien-funcall (extern-alien "sb_mkstemp"
(function int (* char) int))