Commit 9ef54652 authored by Johannes Schriewer's avatar Johannes Schriewer

Bugfix: Avoid logging NUL bytes

parent d6010a88
......@@ -157,7 +157,7 @@ public class Log {
private class func _fwrite(_ stream: UnsafeMutablePointer<FILE>, _ data: String) {
let buf = [CChar].fromString(data)
fwrite(buf, buf.count, 1, stream)
fwrite(buf, buf.count - 1, 1, stream)
}
/// Only use class functions please
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment