notaz.gp2x.de
/
libpicofe.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bededcb
)
fix off-by-1 in directory listing search
author
kub
<derkub@gmail.com>
Fri, 16 Sep 2022 20:06:24 +0000
(20:06 +0000)
committer
kub
<derkub@gmail.com>
Fri, 16 Sep 2022 22:13:08 +0000
(22:13 +0000)
menu.c
patch
|
blob
|
blame
|
history
diff --git
a/menu.c
b/menu.c
index
929713d
..
da9ddf2
100644
(file)
--- a/
menu.c
+++ b/
menu.c
@@
-981,7
+981,6
@@
static int dirent_seek_char(struct dirent **namelist, int len, int sel, char c)
{
\r
int i;
\r
\r
- sel++;
\r
for (i = sel + 1; ; i++) {
\r
if (i >= len)
\r
i = 1;
\r
@@
-992,7
+991,7
@@
static int dirent_seek_char(struct dirent **namelist, int len, int sel, char c)
break;
\r
}
\r
\r
- return i
- 1
;
\r
+ return i;
\r
}
\r
\r
static const char *menu_loop_romsel(char *curr_path, int len,
\r