summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index 5996dcf4f..2fa3a8f21 100644
--- a/src/main.c
+++ b/src/main.c
@@ -331,7 +331,7 @@ 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
*/
- quitmsg = sstrdup("Signal Received");
+ quitmsg = "Signal Received";
if (started) {
#ifndef _WIN32
if (signum == SIGHUP) { /* SIGHUP = save databases and restart */
@@ -362,8 +362,8 @@ void sighandler(int signum)
save_databases();
if (!read_config(1)) {
- sprintf(quitmsg,
- "Error Reading Configuration File (Received SIGUSR2)");
+ static char *buf = "Error Reading Configuration File (Received SIGUSR2)";
+ quitmsg = buf;
quitting = 1;
}
send_event(EVENT_RELOAD, 1, EVENT_START);