From acacc71a01767e2510b1d35c058ecf9e2ed553a3 Mon Sep 17 00:00:00 2001 From: "rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b" Date: Tue, 1 Nov 2005 20:14:59 +0000 Subject: [PATCH] use sstrdup on the BSFantasyChar if not specified in the config file. git-svn-id: svn://svn.anope.org/anope/trunk@925 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@667 5417fbe8-f217-4b02-8779-1006273d7864 --- Changes | 1 + src/config.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Changes b/Changes index f04d8de7d..c31a9c91a 100644 --- a/Changes +++ b/Changes @@ -9,6 +9,7 @@ Provided by Anope Dev. - 2005 10/01 A Information on uplink server can be displayed via OperServ STATS. [ #00] 09/29 A Configuration option to change fantasy command prefix character. [ #00] 09/28 A Event for fantasy commands triggered without channel access. [ #00] +11/01 F /os reload - BSFantasyChar was not sstrduped if not defined. [ #00] 10/25 F Memleaks and not removing tempfiles on failed module loading. [ #00] 10/25 F Help response for os random news was using opernews text. [ #00] 10/05 F Changed NickLen and BSFantasyChar into recommended and optional. [ #00] diff --git a/src/config.c b/src/config.c index e08afa682..f66e76f58 100644 --- a/src/config.c +++ b/src/config.c @@ -1333,7 +1333,7 @@ int read_config(int reload) } } if (!BSFantasyCharacter) - BSFantasyCharacter = "!"; + BSFantasyCharacter = sstrdup("!"); if (BSFantasyCharacter && (strlen(BSFantasyCharacter) > 1)) { printf ("*** BSFantasyCharacter is more than 1 character long. Only the first\n"