commit 9907462a49c70bb9bcadacd7af873bd1158cd8b8
parent 9f121cf7bd35a47b0fe654b7ced8aae08dc4dd6b
Author: Paul <paul@claws-mail.org>
Date: Tue, 24 Sep 2019 13:20:10 +0100
fix warning ‘%s’ directive output may be truncated writing up to 8191 bytes into a region of size 8187
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/summaryview.c b/src/summaryview.c
@@ -3546,7 +3546,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;
}