From 8028f969febdbf68101d5a4b00f989f50b34a349 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Tue, 27 Nov 2001 20:21:56 +0000 Subject: [PATCH] didn't work properly with scripts calling Irssi::printformat() git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2157 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-text/textbuffer-reformat.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/fe-text/textbuffer-reformat.c b/src/fe-text/textbuffer-reformat.c index d719c468..9bccbc5a 100644 --- a/src/fe-text/textbuffer-reformat.c +++ b/src/fe-text/textbuffer-reformat.c @@ -228,7 +228,8 @@ static void sig_print_format(THEME_REC *theme, const char *module, g_string_append_c(format, '\0'); g_string_append_c(format, (char)LINE_CMD_FORMAT); - g_string_append(format, args[n]); + if (args[n] != NULL) + g_string_append(format, args[n]); } }