1
0
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:
Sebastien Helleu
2007-11-04 15:32:32 +01:00
parent f8c8ee1600
commit 1a0472c5dd
2 changed files with 6 additions and 1 deletions
+2 -1
View File
@@ -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);