zygo

ncurses gopher client
Log | Files | Refs

commit 1ba0f8466f75b2b27b1feb97956cd75698c4f1d7
parent 6ffd09cc2ae0778ef897aae7324d7032524625d6
Author: hhvn <dev@hhvn.uk>
Date:   Mon, 17 Jan 2022 13:36:04 +0000

zygo.c: fix find() segfault

Diffstat:
Mzygo.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/zygo.c b/zygo.c @@ -586,7 +586,7 @@ find(int backward) { return; } - for (i = 0; i <= list_len(&page); i++) { + for (i = 0; i < list_len(&page); i++) { if (regexec(&ui.regex, list_get(&page, i)->desc, 0, NULL, 0) == 0) { matches[mlast].found = 1; matches[mlast].pos = i;