(shut): Fix misuse of logerror(): passed formatted string instead of
format string and arguments. Correctness depends on formatted string not containing '%', which is the case.
This commit is contained in:
parent
29faf70fa7
commit
2f08b52cef
1 changed files with 2 additions and 2 deletions
|
@ -88,14 +88,14 @@ shut(void)
|
|||
if (msgbuf[0]) {
|
||||
sendmessage(us, 0, msgbuf, 1);
|
||||
pr("%s\n", msgbuf + 2);
|
||||
logerror(msgbuf + 2);
|
||||
logerror("%s", msgbuf + 2);
|
||||
}
|
||||
if (shutdown_minutes) {
|
||||
sprintf(msgbuf, ": The server will shut down in %d minutes!",
|
||||
shutdown_minutes);
|
||||
sendmessage(us, 0, msgbuf, 1);
|
||||
pr("%s\n", msgbuf + 2);
|
||||
logerror(msgbuf + 2);
|
||||
logerror("%s", msgbuf + 2);
|
||||
}
|
||||
return RET_OK;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue