From 734d888210dc2863fbcd37c408102460476623bb Mon Sep 17 00:00:00 2001 From: Alexandre Jousset Date: Fri, 28 May 2021 04:21:28 +0200 Subject: python: Fix off by one range The range goes from 31 to 1 inclusive (#2391). --- plugins/python/python.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/python/python.py b/plugins/python/python.py index 30694802..7bd327e3 100644 --- a/plugins/python/python.py +++ b/plugins/python/python.py @@ -198,7 +198,7 @@ else: # There can be empty entries between non-empty ones so find the actual last value def wordlist_len(words): - for i in range(31, 1, -1): + for i in range(31, 0, -1): if ffi.string(words[i]): return i -- cgit 1.4.1