Re: Crash when launching nautilus-sendto




There is actually a fix for this on the Gnome Bugzilla
(http://bugzilla.gnome.org/show_bug.cgi?id=317081), but I don't know
how to use it.



This is the message in the mailing list:



Fix for (possibly this) evolution related crash.



Not sure if this is the same crasher or not, but I suspect it may be.
At least

here, the crash was caused by contact entries with no family name, and
the

resulting strlen call on NULL. Patch adds a check to make sure
family_name

isn't NULL before doing anything with it.



and this is the patch:




Code:
--------------------
diff -aur nautilus-sendto-0.4-orig/src/plugins/evolution.c nautilus-sendto-0.4/src/plugins/evolution.c

--- nautilus-sendto-0.4-orig/src/plugins/evolution.c 2005-07-31 14:34:52.000000000 -0700

+++ nautilus-sendto-0.4/src/plugins/evolution.c 2005-10-28 21:54:13.000000000 -0700

@@ -87,7 +87,7 @@

gchar *email = e->data;



hash_value = g_strdup_printf ("mailto:%s",email);

- if (strlen (family_name)==0){

+ if (family_name != NULL && strlen (family_name)==0){

/* Output : name <email> */

str = g_string_new("");

g_string_printf (str, "%s <%s>", given_name, email);
--------------------




I have asked them how to use it, but they have told me to ask my
distribution to update the nautilus-sendto package.


--
finferflu

--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
https://lists.ubuntu.com/mailman/listinfo/ubuntu-users