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:
Assar Westerlund
2000-06-28 18:44:07 +00:00
parent 9648ccac82
commit 3e01f1079f

View File

@@ -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;