aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/luarocks/tools/patch.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/luarocks/tools/patch.lua b/src/luarocks/tools/patch.lua
index 04154219..baaacfc1 100644
--- a/src/luarocks/tools/patch.lua
+++ b/src/luarocks/tools/patch.lua
@@ -95,7 +95,7 @@ local function string_as_file(s)
95 eof = false, 95 eof = false,
96 read = function(self, n) 96 read = function(self, n)
97 if self.eof then return nil end 97 if self.eof then return nil end
98 local chunk = self.str:sub(self.at, self.at+n) 98 local chunk = self.str:sub(self.at, self.at + n - 1)
99 self.at = self.at + n 99 self.at = self.at + n
100 if self.at > self.len then 100 if self.at > self.len then
101 self.eof = true 101 self.eof = true