From 65aaa99a0a6613124baddf55bd3d8ab4f141bd05 Mon Sep 17 00:00:00 2001 From: "kim (grufwub)" Date: Sat, 24 Oct 2020 00:13:49 +0100 Subject: [PATCH] fix broken file reading Signed-off-by: kim (grufwub) --- core/filesystem.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/filesystem.go b/core/filesystem.go index 62158f5..9804def 100644 --- a/core/filesystem.go +++ b/core/filesystem.go @@ -122,9 +122,8 @@ func (fs *FileSystemObject) ReadFile(fd *os.File) ([]byte, Error) { } } - // Add current line to return slice, skip - // final byte which is '\n' - ret = append(ret, line[:len(line)-1]...) + // Add current line to return slice + ret = append(ret, line...) } // Return!