[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RP] 0.0.1 -- Virtual memory exceeded parsing rc files!
From: |
Ryan Yeske |
Subject: |
[RP] 0.0.1 -- Virtual memory exceeded parsing rc files! |
Date: |
07 Mar 2001 19:28:49 -0800 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.0.98 |
You will get a virtual memory exceeded error in ratpoison-0.0.1 if
your .ratpoisonrc file is too long. How long depends on your virtual
memory settings. This has been fixed on both the head and the
rel-0-1-0 branches in cvs. Shawn is releasing a 0.1.1 very soon and
everyone should all upgrade.
Below is a patch, but its only one character difference :)
Ryan
Index: main.c
===================================================================
RCS file: /cvsroot/ratpoison/ratpoison/src/main.c,v
retrieving revision 1.24.2.3
retrieving revision 1.24.2.4
diff -c -r1.24.2.3 -r1.24.2.4
*** main.c 2001/03/08 00:25:47 1.24.2.3
--- main.c 2001/03/08 03:21:15 1.24.2.4
***************
*** 226,232 ****
*line = '\0';
while (fgets (partial, n, file) != NULL)
{
! if ((strlen (line) + strlen (partial)) <= linesize)
{
linesize *= 2;
line = (char*) xrealloc (line, linesize);
--- 226,232 ----
*line = '\0';
while (fgets (partial, n, file) != NULL)
{
! if ((strlen (line) + strlen (partial)) >= linesize)
{
linesize *= 2;
line = (char*) xrealloc (line, linesize);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [RP] 0.0.1 -- Virtual memory exceeded parsing rc files!,
Ryan Yeske <=