On Thu, 2008-03-06 at 11:55 +0100, Johannes Schindelin wrote:
I think we've spent more time debating va_copy than it would take for
somebody to just lift the implementation and checks from something like
glib. But the recent patch for vsnprintf[1] doesn't actually fix the
problem of reusing va_args in the general case; the va_list argument,
ap, is undefined after the vsnprintf() call, yet it calls it in a loop.
Just bite the bullet and pull in va_copy. Of course, I'm just adding
to the debate here and not sending patches :/
It's not a terrible idea, honestly. There are several mature vsnprintf
implementations out there under friendly licenses. We could just stick
it in compat/. It's the only way to do reliable, cross platform
vsnprintf, in my experience. And the issue with %I64u vs %llu could be
handle by implementing both, as Wayne Davison suggests.
Kristian
[1] Message-Id: 200803051646.13343.michal.rokos@nextsoft.cz from Michal Rokos
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html