diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/system/sysio.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/system/sysio.nim b/lib/system/sysio.nim index edf3d347a..6db92ddf9 100644 --- a/lib/system/sysio.nim +++ b/lib/system/sysio.nim @@ -158,7 +158,7 @@ proc readAllFile(file: File, len: int): string = else: # We read all the bytes but did not reach the EOF # Try to read it as a buffer - result = readAllBuffer(file) + result.add(readAllBuffer(file)) proc readAllFile(file: File): string = var len = rawFileSize(file) |