1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-05 09:13:14 +02:00

core: fix size used in some snprintf

This commit is contained in:
Sebastien Helleu
2014-02-26 09:17:20 +01:00
parent 1aae49a2eb
commit c8cd6c4639
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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));
}