[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: gEDA-user: out of memory error when generating gerbers



I've checked in two patches for this; either would fix the problem.
Here's the shorter one:

Index: mymem.c
===================================================================
RCS file: /cvsroot/pcb/pcb/src/mymem.c,v
retrieving revision 1.21
diff -p -U2 -r1.21 mymem.c
--- mymem.c     2 Aug 2006 15:55:18 -0000       1.21
+++ mymem.c     21 Sep 2006 21:30:58 -0000
@@ -672,4 +672,6 @@ MyRealloc (void *Ptr, size_t Size, const
   fprintf (stderr, "0x%x Realloc to %d from %s ", Ptr, Size, Text);
 #endif
+  if (Size == 0)
+    Size = 1;
   p = Ptr ? realloc (Ptr, Size) : malloc (Size);
   if (!p)


_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user