summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2014-02-26 09:17:20 +0100
committerSebastien Helleu <flashcode@flashtux.org>2014-02-26 09:17:20 +0100
commitc8cd6c4639ead6c650de4048726cf0bd4a8475ca (patch)
treeba4cdbebba36c329385426f154a929290235c434 /src/gui
parent1aae49a2eba0323777ac3a7ca60a29ed6977f786 (diff)
downloadweechat-c8cd6c4639ead6c650de4048726cf0bd4a8475ca.zip
core: fix size used in some snprintf
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/gui-bar-item.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/gui-bar-item.c b/src/gui/gui-bar-item.c
index 86c252d69..93678543c 100644
--- a/src/gui/gui-bar-item.c
+++ b/src/gui/gui-bar-item.c
@@ -1326,11 +1326,11 @@ gui_bar_item_default_hotlist (void *data, struct t_gui_bar_item *item,
strcat (str_hotlist, GUI_COLOR_CUSTOM_BAR_FG);
if (CONFIG_INTEGER(config_look_hotlist_names_length) == 0)
{
- snprintf (format, sizeof (format) - 1, "%%s");
+ snprintf (format, sizeof (format), "%%s");
}
else
{
- snprintf (format, sizeof (format) - 1,
+ snprintf (format, sizeof (format),
"%%.%ds",
CONFIG_INTEGER(config_look_hotlist_names_length));
}