Fix vsnprintf() emulation again.
On Windows, if the native vsnprintf() fills the buffer, it does not add
the terminating NUL. The earlier commit
f32edf6b tried to fix the
emulation, but the fix worked only if the formatted string fitted into
the buffer exactly. However, there are callers that do not try to resize
the buffer if it overflows, and in these cases the resulting string
remained without the trailing NUL. This patch adds the NUL in all cases.
Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>