Do not attempt to pass a va_args to regular snprintf. Hilarity will ensue. Fortunately, 1.4 does not have this bug.

svn:r1078
This commit is contained in:
Nick Mathewson 2009-01-31 05:45:26 +00:00
parent 4ec690d35e
commit 2546ea665e

View File

@ -454,7 +454,7 @@ _evdns_log(int warn, const char *fmt, ...)
if (!evdns_log_fn)
return;
va_start(args,fmt);
evutil_snprintf(buf, sizeof(buf), fmt, args);
evutil_vsnprintf(buf, sizeof(buf), fmt, args);
evdns_log_fn(warn, buf);
va_end(args);
}