From 578755d6274daf2eb0de998477960a34755c5d51 Mon Sep 17 00:00:00 2001 From: rburchell Date: Mon, 16 Feb 2009 12:57:19 +0000 Subject: Fix segfault on shutdown, thanks Ankit git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2092 5417fbe8-f217-4b02-8779-1006273d7864 --- Changes | 6 ++++++ src/main.c | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Changes b/Changes index b2dfdcd43..a7237d06c 100644 --- a/Changes +++ b/Changes @@ -1,6 +1,12 @@ Anope Version 1.9.1 -------------------- + + + +Provided by Ankit - 2009 +F Segfault on shutdown + Provided by Adam - 2009 F Applied patch from Adam to fix some potential screwups F More fixes to bs_bot from Adam, plus an extra fix within DoAdd not covered in Adam's patch. diff --git a/src/main.c b/src/main.c index 7c76674e8..9caa6b650 100644 --- a/src/main.c +++ b/src/main.c @@ -241,7 +241,8 @@ void sighandler(int signum) * always set when we need it. It seems some signals slip through to the * QUIT code without having a valid quitmsg. -GD */ - snprintf(const_cast(quitmsg), BUFSIZE, "Services terminating on signal %d", signum); + if (!quitmsg) + quitmsg = "Services terminating via a signal."; if (started) { -- cgit