Patch for rare SIGSEGV.


Subject: Patch for rare SIGSEGV.
From: Peter Haight (peterh@sapros.com)
Date: Mon Aug 28 2000 - 17:43:00 CDT


I was getting a SIGSEGV when I had the font path setup incorrectly. I
tracked it down and here's a patch to CVS (8/28). g_renew was returning a
different memory space from the one that was passed in.

Index: src/af/ev/unix/gnome/ev_UnixGnomeMenu.cpp
===================================================================
RCS file: /cvsroot/abi/src/af/ev/unix/gnome/ev_UnixGnomeMenu.cpp,v
retrieving revision 1.7
diff -u -r1.7 ev_UnixGnomeMenu.cpp
--- src/af/ev/unix/gnome/ev_UnixGnomeMenu.cpp 2000/07/19 01:57:56 1.7
+++ src/af/ev/unix/gnome/ev_UnixGnomeMenu.cpp 2000/08/28 22:34:07
@@ -449,7 +449,7 @@
                pos++;
        }

- g_renew(GnomeUIInfo, retval, i + 1);
+ retval = g_renew(GnomeUIInfo, retval, i + 1);

        return (retval);
 }



This archive was generated by hypermail 2b25 : Mon Aug 28 2000 - 17:43:34 CDT