From 1b0d0e234ea94813ef3700703adfb73c6a621dfe Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Tue, 2 Jul 2002 22:22:01 +0000 Subject: Increase the size of the escapped mlist buffer, we can't assume that there 2002-07-02 Jeffrey Stedfast * folder-browser.c (on_right_click): Increase the size of the escapped mlist buffer, we can't assume that there can only ever be a single '_' in the mlist name afaik. svn path=/trunk/; revision=17353 --- mail/ChangeLog | 4 ++++ mail/folder-browser.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'mail') diff --git a/mail/ChangeLog b/mail/ChangeLog index af0187e061..02cd1ba39b 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,5 +1,9 @@ 2002-07-02 Jeffrey Stedfast + * folder-browser.c (on_right_click): Increase the size of the + escapped mlist buffer, we can't assume that there can only ever be + a single '_' in the mlist name afaik. + Fixes bug #27263. * folder-browser.c (filter_subject): Decide the filter source type diff --git a/mail/folder-browser.c b/mail/folder-browser.c index 661bcb1f5d..aa0ff3144f 100644 --- a/mail/folder-browser.c +++ b/mail/folder-browser.c @@ -1906,7 +1906,7 @@ on_right_click (ETree *tree, gint row, ETreePath path, gint col, GdkEvent *event fdata->mlist = g_strdup(mname); /* Escape the mailing list name before showing it */ - mlist = alloca (strlen (mname)+2); + mlist = alloca ((strlen (mname) * 2) + 1); p = mname; o = mlist; while ((c = *p++)) { -- cgit