From 0e9451f5e8fe5a14d8ca73a71f557e3f680fe0bd Mon Sep 17 00:00:00 2001 From: James Booth Date: Sun, 28 Oct 2012 18:01:13 +0000 Subject: [PATCH] Allocate memory for additional /who completion --- src/command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/command.c b/src/command.c index e9f40409..cd62c742 100644 --- a/src/command.c +++ b/src/command.c @@ -442,7 +442,7 @@ cmd_init(void) p_autocomplete_add(who_ac, (gchar *)strdup(pcmd->cmd+1)); } - p_autocomplete_add(who_ac, "offline"); + p_autocomplete_add(who_ac, strdup("offline")); history_init(); }