Avoid use of vasprintf.

This is not available on mingw-w64, and the extra allocation is unnecessary.

This commit licensed as MIT/X11.
Merge pull request #1264 from madewokherd/vasprintf

Avoid use of vasprintf.