tag 606319 + patch thanks I'm almost sure this is http://bugs.irssi.org/index.php?do=details&task_id=669
Attached is a patch that seems to fix it for me. -- ·O· Pierre Habouzit ··O madco...@debian.org OOO http://www.madism.org
>From f124a50beee43665ade240058836098c2418fa24 Mon Sep 17 00:00:00 2001 From: Pierre Habouzit <madco...@debian.org> Date: Thu, 9 Dec 2010 23:20:08 +0100 Subject: [PATCH] Avoid segfault in with cumode_space Signed-off-by: Pierre Habouzit <madco...@debian.org> --- src/irc/core/irc-expandos.c | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/src/irc/core/irc-expandos.c b/src/irc/core/irc-expandos.c index 0c0da64..1c3a353 100644 --- a/src/irc/core/irc-expandos.c +++ b/src/irc/core/irc-expandos.c @@ -106,7 +106,14 @@ static char *expando_cumode_space(SERVER_REC *server, void *item, int *free_ret) return ""; ret = expando_cumode(server, item, free_ret); - return *ret == '\0' ? " " : ret; + if (*ret == '\0') { + if (*free_ret) { + g_free(ret); + *free_ret = FALSE; + } + ret = " "; + } + return ret; } static void event_join(IRC_SERVER_REC *server, const char *data, -- 1.7.3.2.633.gba590