talons

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

commit e0a319b4b672c592f9824509d948914a4d167a1e
parent 779d80e310ba19b54c4293dd94b59b39d952b12f
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)