do not use variable as format string to syslog
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8479 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -73,7 +73,7 @@ fatal (kx_context *kc, int fd, char *format, ...)
|
||||
p = msg;
|
||||
*p++ = ERROR;
|
||||
vsnprintf ((char *)p + 4, sizeof(msg) - 5, format, args);
|
||||
syslog (LOG_ERR, (char *)p + 4);
|
||||
syslog (LOG_ERR, "%s", (char *)p + 4);
|
||||
len = strlen ((char *)p + 4);
|
||||
p += KRB_PUT_INT (len, p, 4, 4);
|
||||
p += len;
|
||||
|
Reference in New Issue
Block a user