Don't use vasprintf() anymore on Windows.
authorGuus Sliepen <guus@tinc-vpn.org>
Wed, 17 Jul 2013 16:06:56 +0000 (18:06 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Wed, 17 Jul 2013 16:06:56 +0000 (18:06 +0200)
commit182890814881be90e28ac5183039e25709766992
tree8aff7fe2fa629f336fcaa306bb18146db7c96072
parent54127996ca4156668b6c7df3bb5d8f952dc598ad
Don't use vasprintf() anymore on Windows.

Windows doesn't actually support it, but MinGW provides it. However, with some versions of
MinGW it doesn't work correctly. Instead, we vsnprintf() to a local buffer and xstrdup() the
results.
src/xalloc.h