diff options
author | rcyeske <rcyeske> | 2001-03-08 03:18:42 +0000 |
---|---|---|
committer | rcyeske <rcyeske> | 2001-03-08 03:18:42 +0000 |
commit | 381857aabfc54cf256df9371674bf3eeef2f32ca (patch) | |
tree | 339f44f751d6e0b3194fb22be33b3529a298a5de /src/main.c | |
parent | ec98560f785194f3055e4ea4e6ea0743f0cafdc2 (diff) | |
download | ratpoison-381857aabfc54cf256df9371674bf3eeef2f32ca.zip |
* main.c (read_rc_file): Fix typo that was resulting in exhausting
all memory parsing the rc file.
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |