Fix for Bug 4072: Crash when clicking 'reply' or 'reply with quote'
authorwwp <subscript@free.fr>
Sat, 18 Aug 2018 07:34:09 +0000 (09:34 +0200)
committerwwp <subscript@free.fr>
Sat, 18 Aug 2018 07:34:09 +0000 (09:34 +0200)
Wrong '%\n' format causes a crash in g_strdup_printf.

src/quote_fmt_parse.y

index 03c872a..92e300e 100644 (file)
@@ -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)