Thumbnail

rani/cscroll.git

Clone URL: https://git.buni.party/rani/cscroll.git

commit b2e0bde3d71d6c44cebdf2f295e4033eb3f3f0a6 Author: rani <clagv.randomgames@gmail.com> Date: Sat Jan 28 21:44:40 2023 +0000 Fix buffer overflow when scrolling in info pager diff --git a/src/io.c b/src/io.c index 5c99369..539a140 100644 --- a/src/io.c +++ b/src/io.c @@ -8777 +8777 @@ void page_info(void) {   }   break;   case DOWN_KEYS: - if (last_info < info_buffer.n) { + if (last_info < info_buffer.n - 1) {   first_info++;   last_info++;   }