commit 47e9a6a807ab30baae05f4557f82d63c70108a59
parent a7f12cfb634540b194f882c4939b04ad987ec891
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
@@ -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;
}