From 0302dce36cb5066a5c818d616a047dc93cfd025d Mon Sep 17 00:00:00 2001 From: Michael Schroeder Date: Thu, 22 Nov 2018 12:02:00 +0100 Subject: [PATCH] Fix off-by-one error in the "oneof" parsing code --- ext/testcase.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/testcase.c b/ext/testcase.c index ffc8b8a..469218d 100644 --- a/ext/testcase.c +++ b/ext/testcase.c @@ -1071,7 +1071,7 @@ testcase_str2job(Pool *pool, const char *str, Id *whatp) Queue q; job |= SOLVER_SOLVABLE_ONE_OF; queue_init(&q); - if (npieces > 3 && strcmp(pieces[2], "nothing") != 0) + if (npieces > 2 && strcmp(pieces[2], "nothing") != 0) { for (i = 2; i < npieces; i++) { -- libgit2 0.27.7