Re: [gnome-mud] Critical errors on startup, Seg Fault during key depression



On Thu, 2003-12-11 at 15:30, Jordi Mallach wrote:
> On Thu, Dec 11, 2003 at 02:34:33PM +0100, Robin Ericsson wrote:
> > Can you duplicate the savelog crash with coredump?
> 
> I generated a full backtrace.

Where can I find it? :)

> > The alias bug seems to easy fix by ltrim the value before saving?
> 
> Aha, I never got round to duplicating it.

The attached diff fixes the problem for me, can you attach this to the
bug for the reporter to try it out?


regards
Robin
Index: data.c
===================================================================
RCS file: /cvs/gnome/gnome-mud/src/data.c,v
retrieving revision 1.19
diff -u -p -u -r1.19 data.c
--- data.c	14 Jul 2003 07:29:03 -0000	1.19
+++ data.c	12 Dec 2003 09:35:41 -0000
@@ -78,11 +78,11 @@ static gchar check_str (gchar *str)
 static gint find_data (GList *list, gchar *text)
 {
 	GList *entry;
-    gint i = 0;
+	gint i = 0;
 
 	for (entry = g_list_first(list); entry != NULL; entry = g_list_next(entry), i++)
 	{
-		if (!g_ascii_strncasecmp(((gchar **) entry->data)[0], text, strlen(text)))
+		if (!g_ascii_strncasecmp(((gchar **) entry->data)[0], text, strlen(((gchar **) entry->data)[0])))
 		{
 			return i;
 		}


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