On Oct 24, 2007, at 15:59:49, Matthew Wilcox wrote:
[...]
[...]
[...]
This seems unlikely to work reliably as the various "v*printf"
functions modify the va_list argument they are passed. It may happen
to work on your particular architecture depending on how that
argument data is passed and stored, but you probably actually want to
make a copy of the varargs list for the first vsnprintf call.
Example below:
Cheers,
Kyle Moffett
-