aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lpm.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lpm.lua b/src/lpm.lua
index 4f44401..7a4075d 100644
--- a/src/lpm.lua
+++ b/src/lpm.lua
@@ -2186,7 +2186,7 @@ not commonly used publically.
offset = e + 1
end
s,e = ARGS["table"]:find("%s*,%s*", offset)
- if not e then s,e = #ARGS["table"],#ARGS["table"] end
+ if not e then s,e = #ARGS["table"]+1, #ARGS["table"] end
if offset >= e then break end
TABLE[i] = ARGS["table"]:sub(offset, s - 1)
offset = e + 1