Skip to content

Commit dc1227f

Browse files
committed
[SE-0134] Fix-up for renaming UTF8-related properties
1 parent 670dbdc commit dc1227f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

stdlib/private/SwiftPrivateLibcExtras/SwiftPrivateLibcExtras.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ public func _stdlib_mkstemps(_ template: inout String, _ suffixlen: CInt) -> CIn
2424
#else
2525
var utf8CStr = template.utf8CString
2626
let (fd, fileName) = utf8CStr.withUnsafeMutableBufferPointer {
27-
(utf8CStrBuf) -> (CInt, String) in
28-
let fd = mkstemps(utf8CStrBuf.baseAddress!, suffixlen)
29-
let fileName = String(cString: utf8CStrBuf)
27+
(utf8CStr) -> (CInt, String) in
28+
let fd = mkstemps(utf8CStr.baseAddress!, suffixlen)
29+
let fileName = String(cString: utf8CStr.baseAddress!)
3030
return (fd, fileName)
3131
}
3232
template = fileName

0 commit comments

Comments
 (0)