diff --git a/sbin/savecore/savecore.c b/sbin/savecore/savecore.c index a85adc62e9e9..157383024940 100644 --- a/sbin/savecore/savecore.c +++ b/sbin/savecore/savecore.c @@ -651,7 +651,7 @@ DoFile(const char *savedir, const char *device) } if (kdhl.panicstring[0] != '\0') - syslog(LOG_ALERT, "reboot after panic: %*s", + syslog(LOG_ALERT, "reboot after panic: %.*s", (int)sizeof(kdhl.panicstring), kdhl.panicstring); else syslog(LOG_ALERT, "reboot");