From fc22ee6f088b1712d23004efdb21c484b3e047c3 Mon Sep 17 00:00:00 2001 From: XeonSquared Date: Mon, 7 Aug 2023 13:38:59 +1000 Subject: [PATCH] I should not be allowed to operate a computer. --- rtfs/lib/rtfs.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtfs/lib/rtfs.lua b/rtfs/lib/rtfs.lua index 0d98efa..40aeb6e 100644 --- a/rtfs/lib/rtfs.lua +++ b/rtfs/lib/rtfs.lua @@ -395,7 +395,7 @@ function proxy:readHandle(h,s) local handle, rb = self.handles[h] if handle.currentSector < handle.ft[3] - 1 then local rb = self.d.readSector(handle.ft[2] + handle.currentSector) - if handle.currentSector == handle.ft[3] - 1 then + elseif handle.currentSector == handle.ft[3] - 1 then local rb = self.d.readSector(handle.ft[2] + handle.currentSector):gsub("\0+$","") else return nil