Skip to content
Permalink
Browse files

Fixed infobar_printf interface function, security problem with string…

… format
  • Loading branch information...
flashcode committed Jan 7, 2006
1 parent 3fd569a commit 05456cc54e80e813b15850ee4ba7e5aa277f44fd
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/plugins/plugins-interface.c
  2. +1 −1 weechat/src/plugins/plugins-interface.c
@@ -210,7 +210,7 @@ weechat_plugin_infobar_printf (t_weechat_plugin *plugin, int time_displayed, cha
va_start (argptr, message);
vsnprintf (buf, sizeof (buf) - 1, message, argptr);
va_end (argptr);
gui_infobar_printf (time_displayed, COLOR_WIN_INFOBAR, buf);
gui_infobar_printf (time_displayed, COLOR_WIN_INFOBAR, "%s", buf);
}

/*
@@ -210,7 +210,7 @@ weechat_plugin_infobar_printf (t_weechat_plugin *plugin, int time_displayed, cha
va_start (argptr, message);
vsnprintf (buf, sizeof (buf) - 1, message, argptr);
va_end (argptr);
gui_infobar_printf (time_displayed, COLOR_WIN_INFOBAR, buf);
gui_infobar_printf (time_displayed, COLOR_WIN_INFOBAR, "%s", buf);
}

/*

0 comments on commit 05456cc

Please sign in to comment.
You can’t perform that action at this time.