We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 670dbdc commit dc1227fCopy full SHA for dc1227f
stdlib/private/SwiftPrivateLibcExtras/SwiftPrivateLibcExtras.swift
@@ -24,9 +24,9 @@ public func _stdlib_mkstemps(_ template: inout String, _ suffixlen: CInt) -> CIn
24
#else
25
var utf8CStr = template.utf8CString
26
let (fd, fileName) = utf8CStr.withUnsafeMutableBufferPointer {
27
- (utf8CStrBuf) -> (CInt, String) in
28
- let fd = mkstemps(utf8CStrBuf.baseAddress!, suffixlen)
29
- let fileName = String(cString: utf8CStrBuf)
+ (utf8CStr) -> (CInt, String) in
+ let fd = mkstemps(utf8CStr.baseAddress!, suffixlen)
+ let fileName = String(cString: utf8CStr.baseAddress!)
30
return (fd, fileName)
31
}
32
template = fileName
0 commit comments