Fixed bug in the method 'buffer::vformat'. The va_list 'ap' cannot be reused after vsnprintf.