diff options
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) { |