use vsnprintf so that we dont need roken

This commit is contained in:
Love Hornquist Astrand
2010-11-27 23:21:39 -08:00
parent d36ee8f0b6
commit d69fcab43f
4 changed files with 4 additions and 28 deletions

View File

@@ -370,13 +370,10 @@ heim_abort(const char *fmt, ...)
void
heim_abortv(const char *fmt, va_list ap)
{
char *str = NULL;
int ret;
static char str[1024];
ret = vasprintf(&str, fmt, ap);
if (ret > 0 && str) {
syslog(LOG_ERR, "heim_abort: %s", str);
}
vsnprintf(str, sizeof(str), fmt, ap);
syslog(LOG_ERR, "heim_abort: %s", str);
abort();
}