From add2919b7ba3c008b188998af8612502a6f796ff Mon Sep 17 00:00:00 2001 From: hiro Date: Tue, 26 Nov 2013 07:11:42 +0000 Subject: src/headerview.c: headerview_show_xface(): make sure xface is nul terminated. git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@3298 ee746299-78ed-0310-b773-934348b2243d --- src/headerview.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/headerview.c') diff --git a/src/headerview.c b/src/headerview.c index efa2f803..984e8bc7 100644 --- a/src/headerview.c +++ b/src/headerview.c @@ -284,7 +284,7 @@ static void headerview_show_xface(HeaderView *headerview, MsgInfo *msginfo) } if (!GTK_WIDGET_VISIBLE(headerview->hbox)) return; - strncpy(xface, msginfo->xface, sizeof(xface)); + strncpy2(xface, msginfo->xface, sizeof(xface)); if (uncompface(xface) < 0) { g_warning("uncompface failed\n"); -- cgit v1.2.3