Avoid use of vasprintf.

This is not available on mingw-w64, and the extra allocation is unnecessary.

This commit licensed as MIT/X11.