Skip to content

Commit d7e8bfe

Browse files
committed
Fix ConfigEvent controllers decoding C strings as single chars
1 parent b278a3b commit d7e8bfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ZitiEvent.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ import CZitiPrivate
341341
while i != nil {
342342
let ctrlPtr = model_list_it_element(i)
343343
if let ctrl = UnsafeMutablePointer<CChar>(OpaquePointer(ctrlPtr)) {
344-
ctrlsArray.append(String(ctrl.pointee))
344+
ctrlsArray.append(String(cString: ctrl))
345345
}
346346
i = model_list_it_next(i)
347347
}

0 commit comments

Comments
 (0)