iomenu

interactive text selection menu
Log | Files | Refs | README | LICENSE

commit 5560f1aa53d966db28605a88f844b786011145bf
parent 32c00d932198ce81decc5b864da82bee5a482d26
Author: Josuah Demangeonā  ā µ <mail@josuah.net>
Date:   Sat, 18 Mar 2017 14:34:18 +0100

fixed line overflow issue

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

diff --git a/iomenu.c b/iomenu.c @@ -87,7 +87,7 @@ read_lines(void) if (len > 0 && buffer[len - 1] == '\n') buffer[len - 1] = '\0'; - if (linec > size) { + if (linec >= size) { size *= 2; linev = realloc(linev, sizeof(struct line *) * size);