projects
/
vimb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f36301a
)
Fixed array-bounds warning.
author
Daniel Carl
<danielcarl@gmx.de>
Sat, 29 Dec 2012 20:25:52 +0000
(21:25 +0100)
committer
Daniel Carl
<danielcarl@gmx.de>
Sat, 29 Dec 2012 20:25:52 +0000
(21:25 +0100)
src/setting.c
patch
|
blob
|
history
diff --git
a/src/setting.c
b/src/setting.c
index
40b8ca5
..
050e9e1
100644
(file)
--- 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';