summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
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);