From f11dcb92b5987286488299e9d045a909e7ce679b Mon Sep 17 00:00:00 2001
From: Daniel Carl <danielcarl@gmx.de>
Date: Sat, 29 Dec 2012 21:25:52 +0100
Subject: [PATCH] Fixed array-bounds warning.

---
 src/setting.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/setting.c b/src/setting.c
index 40b8ca5..050e9e1 100644
--- a/src/setting.c
+++ b/src/setting.c
@@ -289,7 +289,7 @@ static gboolean setting_hint_style(const Setting* s)
         style->hint_bg[HEX_COLOR_LEN - 1] = '\0';
     } else if (!g_strcmp0(s->name, "hint-bg-focus")) {
         strncpy(style->hint_bg_focus, s->arg.s, HEX_COLOR_LEN - 1);
-        style->hint_bg_focus[HEX_COLOR_LEN] = '\0';
+        style->hint_bg_focus[HEX_COLOR_LEN - 1] = '\0';
     } else if (!g_strcmp0(s->name, "hint-fg")) {
         strncpy(style->hint_fg, s->arg.s, HEX_COLOR_LEN - 1);
         style->hint_fg[HEX_COLOR_LEN - 1] = '\0';
-- 
2.20.1