diff options
| author | rburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-02-16 12:57:19 +0000 |
|---|---|---|
| committer | rburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-02-16 12:57:19 +0000 |
| commit | 578755d6274daf2eb0de998477960a34755c5d51 (patch) | |
| tree | 6936189f48e9417c9be045f8370e4e70bf4ca320 /src | |
| parent | 89ab54f0d732c8bc14d28a83f011cf5a0d683710 (diff) | |
Fix segfault on shutdown, thanks Ankit
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2092 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
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<char *>(quitmsg), BUFSIZE, "Services terminating on signal %d", signum); + if (!quitmsg) + quitmsg = "Services terminating via a signal."; if (started) { |
