> 18970   pacman_10-4.1_i386.deb                  Libc6! and doesn't segfault!

> There was an error in the source.  A struct was referenced after it was freed.
> I am surprised that it worked on libc5.  It should have segfaulted with that.
> Maybe that is a bug with libc5?  I am in win right now, so don't have the
> source in front of me.  I will get the problem code and post a follow up.

--- pacman-10.orig/board.cc
+++ pacman-10/board.cc
@@ -119,7 +119,7 @@
  oldtemp=oldlist;
  while (oldtemp) {     //delete elements in the now previous sprite list
   oldnext=oldtemp->next;
-  delete oldnext;
+  delete oldtemp;
   oldtemp=oldnext;
  }
 if (zero && oldlist) { //personal thingie used for debug, not useful

This is the patch that fixed the segfault with pacman.  If you look, you'll
wonder how it worked with libc5.  BTW, this is C++ code, if that makes a
difference.


It is hard to look at a penguin and get angry.

Adam Heath of Borg-Linux [EMAIL PROTECTED] Join the H.323 effort.  Email
http://www.debian.org - Get Your Own Linux! [EMAIL PROTECTED] with
http://wwp.mirabilis.com/3375265 - Page Me  the word subscribe in the body.


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .

Reply via email to