sfeed_curses

[fork] sfeed (atom feed) reader
Log | Files | Refs | README | LICENSE

commit b8eb3cd51d5e16986785b073b0b234dc3aeabe2e
parent 47fd2f8468928b88c84debfd7d2baa55e8379b58
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Thu, 16 Jul 2020 17:26:15 +0200

pane_row_get: check if pos < 0

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

diff --git a/sfeed_curses.c b/sfeed_curses.c @@ -571,7 +571,7 @@ plumb(const char *cmd, char *url) struct row * pane_row_get(struct pane *p, off_t pos) { - if (pos >= p->nrows) + if (pos < 0 || pos >= p->nrows) return NULL; if (p->row_get)