fixed line overflow issue - iomenu - interactive terminal-based selection menu
HTML git clone git://bitreich.org/iomenu git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/iomenu
DIR Log
DIR Files
DIR Refs
DIR Tags
DIR README
DIR LICENSE
---
DIR commit 5560f1aa53d966db28605a88f844b786011145bf
DIR parent 32c00d932198ce81decc5b864da82bee5a482d26
HTML Author: Josuah Demangeonā ā µ <mail@josuah.net>
Date: Sat, 18 Mar 2017 14:34:18 +0100
fixed line overflow issue
Diffstat:
M iomenu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR 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);