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 0eed4cc commit f33b8adCopy full SHA for f33b8ad
stdlib/public/core/StringGuts.swift
@@ -249,7 +249,7 @@ extension _StringGuts {
249
// This branch looks unreachable, but can be reached via `withCString`
250
// in binaries that haven't been recompiled since the termination flag
251
// was added to _StringObject. Retry the fast path if so.
252
- return try withCString(body)
+ return try unsafe withCString(body)
253
}
254
return try String(self).utf8CString.withUnsafeBufferPointer {
255
let ptr = unsafe $0.baseAddress._unsafelyUnwrappedUnchecked
0 commit comments