Skip to content

Commit

Permalink
Merge pull request #6 from feinstruktur/master
Browse files Browse the repository at this point in the history
Fixes #4 (Stray characters in stdout, stderr)
  • Loading branch information
nsomar authored Feb 13, 2017
2 parents 09c6716 + 55c432b commit fcb7e73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Process/IO.swift
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ private func _readToString(fd: FileDescriptor) throws -> String {
let data = try _read(fd: fd)
if data.count == 0 { return "" }

let str = String.init(cString: data.map({ UInt8($0)}))
let str = String.init(cString: data.map({ UInt8($0)}) + [0])
return str
}

Expand Down

0 comments on commit fcb7e73

Please sign in to comment.