Thumbnail

rani/cscroll.git

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

commit d9c23a4196d9677909f8f2c33b41c2cb66857fdb Author: Raniconduh <clagv.randomgames@gmail.com> Date: Wed Oct 13 23:33:25 2021 +0000 null terminate inout from curses_getline() diff --git a/src/io.c b/src/io.c index 128d3b4..a29acf5 100644 --- a/src/io.c +++ b/src/io.c @@ -2446 +2447 @@ char * curses_getline(char * p) {   char c;   while ((c = getch()) != '\n')   inp[l++] = c; + inp[l] = '\0';     curs_set(0);   noecho();