Append the readAllBuffer to what was read already

This commit is contained in:
xyz
2015-08-23 18:54:15 -04:00
parent 385a883e14
commit 88247e6857

View File

@@ -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)