From 381857aabfc54cf256df9371674bf3eeef2f32ca Mon Sep 17 00:00:00 2001 From: rcyeske Date: Thu, 8 Mar 2001 03:18:42 +0000 Subject: * main.c (read_rc_file): Fix typo that was resulting in exhausting all memory parsing the rc file. --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index ee63f23..2d2c35f 100644 --- a/src/main.c +++ b/src/main.c @@ -224,7 +224,7 @@ read_rc_file (FILE *file) *line = '\0'; while (fgets (partial, n, file) != NULL) { - if ((strlen (line) + strlen (partial)) <= linesize) + if ((strlen (line) + strlen (partial)) >= linesize) { linesize *= 2; line = (char*) xrealloc (line, linesize); -- cgit v1.2.3