Fix buffer overflow in string_vformat. Bug 2449