From: kub Date: Wed, 25 Jan 2023 22:09:22 +0000 (+0000) Subject: fix hang if seeking for letter in file selector X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d02d8d6fea2f8a0724d89d64d238da2aae84d94;p=libpicofe.git fix hang if seeking for letter in file selector --- diff --git a/menu.c b/menu.c index da9ddf2..fd7fe5a 100644 --- a/menu.c +++ b/menu.c @@ -983,7 +983,7 @@ static int dirent_seek_char(struct dirent **namelist, int len, int sel, char c) for (i = sel + 1; ; i++) { if (i >= len) - i = 1; + i = 0; if (i == sel) break;