diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2014-02-26 09:17:20 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2014-02-26 09:17:20 +0100 |
commit | c8cd6c4639ead6c650de4048726cf0bd4a8475ca (patch) | |
tree | ba4cdbebba36c329385426f154a929290235c434 /src/gui | |
parent | 1aae49a2eba0323777ac3a7ca60a29ed6977f786 (diff) | |
download | weechat-c8cd6c4639ead6c650de4048726cf0bd4a8475ca.zip |
core: fix size used in some snprintf
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/gui-bar-item.c | 4 |
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)); } |