diff options
Diffstat (limited to 'lib/system/sysio.nim')
-rw-r--r-- | lib/system/sysio.nim | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/system/sysio.nim b/lib/system/sysio.nim index 8ad48d368..265f92fa2 100644 --- a/lib/system/sysio.nim +++ b/lib/system/sysio.nim @@ -74,7 +74,10 @@ proc raiseEIO(msg: string) {.noinline, noreturn.} = proc readLine(f: File, line: var TaintedString): bool = var pos = 0 # Use the currently reserved space for a first try - var space = cast[PGenericSeq](line.string).space + when defined(nimscript): + var space = 80 + else: + var space = cast[PGenericSeq](line.string).space line.string.setLen(space) while true: |