trivial fix applied




Darin pointed out that my warning removal patch introduced some
strdup()s which should have been g_strdup()s. I just committed the
patch below which fixes it.

 - Maciej

2000-02-10  Maciej Stachowiak  <mjs@eazel.com>

	* bonobo-ui-handler.c: Replace strdup() with g_strdup(), thanks to
	Darin for pointing this out.

Index: bonobo/bonobo-ui-handler.c
===================================================================
RCS file: /cvs/gnome/bonobo/bonobo/bonobo-ui-handler.c,v
retrieving revision 1.51
diff -u -r1.51 bonobo-ui-handler.c
--- bonobo/bonobo-ui-handler.c	2000/02/11 05:20:16	1.51
+++ bonobo/bonobo-ui-handler.c	2000/02/11 06:08:40
@@ -1751,7 +1751,7 @@
 	BonoboUIHandlerMenuItem *item;
 
 	item = g_new0 (BonoboUIHandlerMenuItem, 1);
-	item->path        = strdup (path);
+	item->path        = g_strdup (path);
 	item->type        = type;
 	item->label       = g_strdup (label?label:"");
 	item->hint        = g_strdup (hint?hint:"");
@@ -5508,10 +5508,10 @@
 
 	item = g_new0 (BonoboUIHandlerToolbarItem, 1);
 
-	item->path = strdup (path);
+	item->path = g_strdup (path);
 	item->type = type;
-	item->label = strdup (label);
-	item->hint = strdup (hint);
+	item->label = g_strdup (label);
+	item->hint = g_strdup (hint);
 	item->pos = pos;
 	item->control = control;
 	item->pixmap_type = pixmap_type;



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