From e0668b4fde4f2800ad223b226fe04b7ccb42c56a Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Wed, 1 Nov 2000 00:55:38 +0000 Subject: Shouldn't we be strdup'ing the content? This seems to fix the memory 2000-10-31 Jeffrey Stedfast * mail-format.c (mail_get_message_body): Shouldn't we be strdup'ing the content? This seems to fix the memory corruption problems. (mail_generate_reply): Make sure that the last char in the generated reply text is '\0' (when bodt text doesn't end with a \n, a random char will appear otherwise). svn path=/trunk/; revision=6306 --- mail/mail-callbacks.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mail/mail-callbacks.c') diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c index 306b4e2003..efe5f8d1f5 100644 --- a/mail/mail-callbacks.c +++ b/mail/mail-callbacks.c @@ -745,8 +745,8 @@ filter_edit (BonoboUIComponent *uih, void *user_data, const char *path) GtkWidget *dialog; gchar *err; - err = g_strdup_printf (_("Error loading filter information:\n" - "%s"), ((RuleContext *)fc)->error); + err = g_strdup_printf (_("Error loading filter information:\n%s"), + ((RuleContext *)fc)->error); dialog = gnome_warning_dialog (err); g_free (err); -- cgit