aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--src/headerview.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 5e699a75..0cbb90f6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-11-26
+
+ * src/headerview.c: headerview_show_xface(): make sure xface is nul
+ terminated.
+
2013-11-25
* src/main.c: win32: check for the TaskbarCreated message and reshow
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");