vasnprintf() solve it just fine, but it would help if the #ifdef HAVE_VASNPRINTF was actually turned on.