mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-17 08:34:20 +00:00
protect against new stupid setlen that doesn't accept -1 anymore
This commit is contained in:
@@ -15,7 +15,8 @@ proc readOutput(p: Process): string =
|
||||
while not output.atEnd:
|
||||
result.add(output.readLine)
|
||||
result.add("\n")
|
||||
result.setLen(result.len - "\n".len)
|
||||
if result.len > 0:
|
||||
result.setLen(result.len - "\n".len)
|
||||
discard p.waitForExit
|
||||
|
||||
proc opGorge*(cmd, input: string): string =
|
||||
|
||||
Reference in New Issue
Block a user