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 ec9b44b commit 217569aCopy full SHA for 217569a
Sources/PrettyStackTrace/PrettyStackTrace.swift
@@ -78,13 +78,13 @@ private class PrettyStackTraceManager {
78
init() {
79
let msg = "Stack dump:\n"
80
stackDumpMsg = StackEntry(prev: nil,
81
- data: strndup(msg, msg.count),
82
- count: msg.count)
+ data: strndup(msg, msg.utf8.count),
+ count: msg.utf8.count)
83
}
84
85
/// Pushes the description of a trace entry to the stack.
86
func push(_ entry: TraceEntry) {
87
- let str = "\(entry.description)\n"
+ let str = " \(entry.description)\n"
88
let newEntry = StackEntry(prev: stack,
89
data: strndup(str, str.count),
90
count: str.count)
0 commit comments