summaryrefslogtreecommitdiff
path: root/utility.c
diff options
context:
space:
mode:
Diffstat (limited to 'utility.c')
-rw-r--r--utility.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utility.c b/utility.c
index 719cd98..2ec44d9 100644
--- a/utility.c
+++ b/utility.c
@@ -1606,7 +1606,7 @@ extern char *get_line_from_file(FILE *file)
if (ch == EOF)
break;
/* grow the line buffer as necessary */
- if (idx > linebufsz-2)
+ while (idx > linebufsz-2)
linebuf = xrealloc(linebuf, linebufsz += GROWBY);
linebuf[idx++] = (char)ch;
if ((char)ch == '\n')