fix warning ā€˜%sā€™ directive output may be truncated writing up to 8191 bytes into...
authorPaul <paul@claws-mail.org>
Tue, 24 Sep 2019 12:20:10 +0000 (13:20 +0100)
committerPaul <paul@claws-mail.org>
Tue, 24 Sep 2019 12:20:10 +0000 (13:20 +0100)
src/summaryview.c

index 88c2c39..c7a8357 100644 (file)
@@ -3565,7 +3565,7 @@ static inline void summary_set_header(SummaryView *summaryview, gchar *text[],
                                to_text = to_text ? to_text : _("(No From)");
                        }
                }
-               snprintf(tmp2, BUFFSIZE-1, "āžœ %s", to_text);
+               snprintf(tmp2, BUFFSIZE+4, "āžœ %s", to_text);
                tmp2[BUFFSIZE-1]='\0';
                text[col_pos[S_COL_FROM]] = tmp2;
        }