summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/encoder/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/encoder/main.c b/test/encoder/main.c
index 26420e2..d4d1309 100644
--- a/test/encoder/main.c
+++ b/test/encoder/main.c
@@ -2053,7 +2053,7 @@ int main(int argc, char *argv[])
/* Read command line arguments */
if(argc > 2)
{
- for(i = 1; i < argc; i += 2)
+ for(i = 1; i + 1 < argc; i += 2)
{
if(CONFIG == get_argument(argv[i]))
{