mirror of
https://github.com/weechat/weechat.git
synced 2026-07-04 00:33:13 +02:00
Added check of buffer pointer in weechat_printf (plugins API)
This commit is contained in:
@@ -252,7 +252,8 @@ plugin_api_printf (struct t_weechat_plugin *plugin,
|
||||
va_list argptr;
|
||||
char buf[8192];
|
||||
|
||||
if (!plugin || !format)
|
||||
if (!plugin || !format
|
||||
|| !gui_buffer_valid ((struct t_gui_buffer *)buffer))
|
||||
return;
|
||||
|
||||
va_start (argptr, format);
|
||||
|
||||
Reference in New Issue
Block a user