1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-28 22:06:38 +02:00

Fixed display bug with empty strings

This commit is contained in:
Sebastien Helleu
2005-03-05 22:42:31 +00:00
parent ac446e9c1f
commit 4b5b5354da
2 changed files with 6 additions and 0 deletions
+3
View File
@@ -2439,6 +2439,9 @@ gui_printf_type_color (t_gui_buffer *buffer, int type, int color, char *message,
vsnprintf (buf, sizeof (buf) - 1, message, argptr);
va_end (argptr);
if (!buf[0])
return;
if (cfg_look_remove_colors_from_msgs)
{
buf2 = (char *) malloc (strlen (buf) + 2);
+3
View File
@@ -2439,6 +2439,9 @@ gui_printf_type_color (t_gui_buffer *buffer, int type, int color, char *message,
vsnprintf (buf, sizeof (buf) - 1, message, argptr);
va_end (argptr);
if (!buf[0])
return;
if (cfg_look_remove_colors_from_msgs)
{
buf2 = (char *) malloc (strlen (buf) + 2);