[Commit] nickle ChangeLog,1.101,1.102 mem.c,1.20,1.21

Keith Packard commit at keithp.com
Mon Nov 29 21:16:11 PST 2004


Committed by: keithp

Update of /local/src/CVS/nickle
In directory home.keithp.com:/tmp/cvs-serv12763

Modified Files:
	ChangeLog mem.c 
Log Message:
2004-11-29  Keith Packard  <keithp at keithp.com>

	* mem.c: (newBlock), (MemAddRoot):
	Call to panic had wrong arguments and caused a segfault.


Index: ChangeLog
===================================================================
RCS file: /local/src/CVS/nickle/ChangeLog,v
retrieving revision 1.101
retrieving revision 1.102
diff -u -d -r1.101 -r1.102
--- ChangeLog	23 Nov 2004 05:02:07 -0000	1.101
+++ ChangeLog	30 Nov 2004 05:16:08 -0000	1.102
@@ -1,3 +1,8 @@
+2004-11-29  Keith Packard  <keithp at keithp.com>
+
+	* mem.c: (newBlock), (MemAddRoot):
+	Call to panic had wrong arguments and caused a segfault.
+
 2004-11-22  Bart Massey  <bart at cs.pdx.edu>
 
 	* builtin-toplevel.5c:

Index: mem.c
===================================================================
RCS file: /local/src/CVS/nickle/mem.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- mem.c	10 Aug 2004 17:45:40 -0000	1.20
+++ mem.c	30 Nov 2004 05:16:08 -0000	1.21
@@ -80,7 +80,7 @@
 	    return 0;
 	b = (struct block *) malloc (size);
 	if (!b)
-	    panic (0, "out of memory - quiting\n");
+	    panic ("Out of memory\n");
     }
     b->sizeIndex = sizeIndex;
     b->next = head;
@@ -225,7 +225,7 @@
 	    RootSize *= 2;
 	roots = malloc (sizeof (void *) * RootSize);
 	if (!roots)
-	    panic ("out of memory");
+	    panic ("Out of memory");
 	memcpy (roots, Roots, RootCount * sizeof (void *));
 	if (Roots)
 	    free (Roots);




More information about the Commit mailing list