Re: gtk+-1.1.6 report




Vandoorselaere Yoann <yoann@roco-productions.com> writes:

> Hello
> 
> I don't know if it is the good mailling list to say that,
> 
> This is just a report that when an gtk apps ( linked with gtk 1.1.6 & glib 1.1.6 )
> 
> is runned as root,
> 
> it sigsegv...
> 
> Bye ;-)

I suspect the following patch which I added to CVS last
night fixes that.
                                        Owen

Index: gtkrc.c
===================================================================
RCS file: /cvs/gnome/gtk+/gtk/gtkrc.c,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -r1.29 -r1.30
--- gtkrc.c	1998/12/09 01:05:39	1.29
+++ gtkrc.c	1998/12/09 05:43:35	1.30
@@ -336,12 +336,12 @@
     }
   else
     {
-      str = g_malloc (strlen(GTK_SYSCONFDIR) + strlen("/gtkrc"));
+      str = g_malloc (strlen(GTK_SYSCONFDIR) + strlen("/gtkrc") + 1);
       sprintf (str, "%s%s", GTK_SYSCONFDIR, "/gtkrc");
       gtk_rc_add_default_file (str);
 
       var = g_get_home_dir ();
-      str = g_malloc (strlen(var) + strlen("/.gtkrc"));
+      str = g_malloc (strlen(var) + strlen("/.gtkrc") + 1);
       sprintf (str, "%s%s", var, "/.gtkrc");
       gtk_rc_add_default_file (str);
     }



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