aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2013-11-26 07:11:42 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2013-11-26 07:11:42 +0000
commitadd2919b7ba3c008b188998af8612502a6f796ff (patch)
treeb8571bcdb706d2fdb538aa3f8bd682dab96111db /src
parentf00de36ea0b8913f6d241c3aa9a08a7270a90450 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/headerview.c2
1 files changed, 1 insertions, 1 deletions
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");