fix warning ā€˜%sā€™ directive output may be truncated writing up to 8191 bytes into...
[claws.git] / src / summaryview.c
index 88c2c39c98d107d845e595a850bdeb6ec0a91d4c..c7a83578f636eea9776a9ced7ed1c6afcab01dfd 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;
        }