talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 4e684cb79903d9e0890897d6b6e2f2fdfeffaa6c
parent f03a00bc638d1f4d91876380201ded22040eef79
Author: wwp <subscript@free.fr>
Date:   Sat, 18 Aug 2018 09:34:09 +0200

Fix for Bug 4072: Crash when clicking 'reply' or 'reply with quote'
Wrong '%\n' format causes a crash in g_strdup_printf.

Diffstat:
Msrc/quote_fmt_parse.y | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/quote_fmt_parse.y b/src/quote_fmt_parse.y @@ -491,7 +491,7 @@ static void quote_fmt_show_msg(MsgInfo *msginfo, const gchar *body, while (fgets(buf, sizeof(buf), fp) != NULL) { strcrchomp(buf); - if (!signature && account_signatures_matchlist_nchar_found(buf, "%\n")) + if (!signature && account_signatures_matchlist_nchar_found(buf, "%s\n")) break; if (quoted && quote_str)